[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#653630: /sbin/mount.nfs: Re: nfs-common: Only root can unmount, nautilus badly confused

>> On Sun, Jan 22, 2012 at 12:55:45PM +0100, Michael Biebl wrote:
>>> I am missing a bit of context here. Is the problem related to the "user"
>>> option or regarding a trailing "/"?

The trailing "/" might be a red herring. I've tried the following:

as root
1/ mkdir /foo /bar
2/ echo "/foo /bar none bind,user 0 0" >> /etc/fstab
as user
1/ mount /bar (successful)
2/ umount /bar
umount: /bar mount disagrees with the fstab
(umount as root works without problems)

When /bar is mounted, I get:

# cat /run/mount/utab
SRC=/dev/disk/by-uuid/5c503ec2-6528-44bb-9ff5-aa2687aa9706 TARGET=/bar ROOT=/foo BINDSRC=/foo OPTS=user=michael
(looks ok)

# findmnt /bar/
TARGET SOURCE                                                       FSTYPE OPTIONS
/bar   /dev/disk/by-uuid/5c503ec2-6528-44bb-9ff5-aa2687aa9706[/foo] ext4   rw,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=ordered
(I'd expect the user option to be set)

# cat /proc/mounts | grep /bar
/dev/disk/by-uuid/5c503ec2-6528-44bb-9ff5-aa2687aa9706 /bar ext4 rw,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=ordered 0 0

When I do
as root
1/ rm /etc/mtab
2/ touch /etc/mtab
as user
1/ mount /bar
2/ mount
/foo on /bar type none (rw,noexec,nosuid,nodev,bind,user=michael)
3/ umount /bar

everything works as expected.

So it looks like something's fishy going on here

Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: