[Bug 681106] New: user can't unmount the nfs share that he has successfully mounted.
https://bugzilla.novell.com/show_bug.cgi?id=681106 https://bugzilla.novell.com/show_bug.cgi?id=681106#c0 Summary: user can't unmount the nfs share that he has successfully mounted. Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: pyakunin@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0.0) Gecko/20100101 Firefox/4.0 There is a nfs share listed in /etc/fstab: server:/mnt/share /mnt/share nfs noauto,user 0 0 user can mount the share and work with it, but can't umount: user@host:~> umount /mnt/share umount: only root can unmount server:/mnt/share from /mnt/share i've tried it on 11.4 fresh install. option "users" in fstab has the same effect Reproducible: Always Steps to Reproduce: 1. create an nfs share mountable by user 2. mount the share as a non-root user 3. try to umount the share as the same non-root user Actual Results: umount fails: umount: only root can unmount server:/mnt/share from /mnt/share Expected Results: umount should unmount the share -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=681106 https://bugzilla.novell.com/show_bug.cgi?id=681106#c1 Len Day <led@lenday.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |led@lenday.com --- Comment #1 from Len Day <led@lenday.com> 2011-03-23 16:11:47 UTC --- Len Day <led@lenday.com> Same symptom. /bin/umount and /sbin/mount.nfs do have suid set. len:/bin# ls -l *mount* -rwsr-xr-x 1 root root 103216 Feb 22 08:43 mount -rwxr-xr-x 1 root root 10608 Feb 18 19:10 mountpoint -rwsr-xr-x 1 root root 77576 Feb 22 08:43 umount len:/sbin# ls -l *mount* -rwxr-xr-x 1 root root 36504 Feb 18 21:36 mount.cifs -rwxr-xr-x 1 root root 10632 Feb 18 19:19 mount.fuse lrwxrwxrwx 1 root root 19 Mar 2 03:47 mount.lowntfs-3g -> /usr/bin/lowntfs-3g -rwsr-xr-x 1 root root 127888 Feb 18 19:54 mount.nfs lrwxrwxrwx 1 root root 9 Mar 2 03:48 mount.nfs4 -> mount.nfs lrwxrwxrwx 1 root root 28 Mar 2 03:47 mount.ntfs -> /etc/alternatives/mount.ntfs lrwxrwxrwx 1 root root 16 Mar 2 03:47 mount.ntfs-3g -> /usr/bin/ntfs-3g lrwxrwxrwx 1 root root 9 Mar 2 03:48 umount.nfs -> mount.nfs lrwxrwxrwx 1 root root 9 Mar 2 03:48 umount.nfs4 -> mount.nfs -rwxr-xr-x 1 root root 144 Feb 18 21:27 umount.udisks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=681106 https://bugzilla.novell.com/show_bug.cgi?id=681106#c Len Day <led@lenday.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=681106 https://bugzilla.novell.com/show_bug.cgi?id=681106#c2 Thilo B <thilo_berger@gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thilo_berger@gmx.net --- Comment #2 from Thilo B <thilo_berger@gmx.net> 2011-03-31 16:13:52 UTC --- I have the same problem with openSUSE 11.4 (x86_64). Mounting a NFS share as normal user works fine. Umount works only with root. umount -v /media/vdr_video umount.nfs: You are not permitted to unmount /media/vdr_video umount.nfs: You are not permitted to unmount /media/vdr_video fstab: <FQDN>:/srv/vdr /media/vdr_video nfs noauto,user,bg,soft,intr,retry=5 0 0 Best regars Thilo -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=681106 https://bugzilla.novell.com/show_bug.cgi?id=681106#c3 Christos Gourdoupis <xgpub@tellas.gr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xgpub@tellas.gr --- Comment #3 from Christos Gourdoupis <xgpub@tellas.gr> 2011-04-08 18:00:19 UTC --- +1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=681106 https://bugzilla.novell.com/show_bug.cgi?id=681106#c4 --- Comment #4 from Len Day <led@lenday.com> 2011-04-17 19:04:29 UTC --- I got tired of waiting and wrote a program that I could install suid root. Note the call to setuid. This should not be necessary but it was. So something is checking the real uid instead of the effective uid for unmounts. Problem in the kernel build? Anyway, this works. Use this at your own risk. With it installed suid root anybody can unmount anything... I used my own string class, you'll have to change that anyway, // 04/17/11, L. E. Day #include <stdio.h> #include <stdlib.h> #include <ledutil.h> int main(int argc, char * argv[]) { LedString cmd("umount "); int stat; stat = setuid(0); if (stat) { fprintf(stderr, "setuid failed with status %d. This program must be installed suid root.\n", stat); exit(stat); } if (argc != 2) { fputs("usage: rum string\nPasses string exactly as specified to umount\n", stderr); exit(1); } cmd += argv[1]; stat = system(cmd.c_str()); exit(stat); } -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=681106 https://bugzilla.novell.com/show_bug.cgi?id=681106#c5 Christian Mahr <christian.mahr.ulm@arcor.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |christian.mahr.ulm@arcor.de --- Comment #5 from Christian Mahr <christian.mahr.ulm@arcor.de> 2011-05-26 21:02:21 UTC --- Hi all, I found a nice work-around. In the cases where umount does not work for a user mounted nfs, umount -i <mountpoint> still works. Seems that in this case the un-mount is done by the main umount program, not by the umount.nfs BR Christian -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=681106 https://bugzilla.novell.com/show_bug.cgi?id=681106#c Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |puzel@novell.com AssignedTo|bnc-team-screening@forge.pr |puzel@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=681106 https://bugzilla.novell.com/show_bug.cgi?id=681106#c6 Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|puzel@novell.com |nfbrown@novell.com --- Comment #6 from Petr Uzel <puzel@novell.com> 2011-08-16 10:20:04 UTC --- This seems to be the result of using non-writable /etc/mtab by default since 11.4. Before, in times when mtab was writable regular file, mount used it to store info about which user the mountpoint belongs to. With read-only mtab, mount(8) stores this information into /dev/.mount/utab. However, this unfortunately does not work with older (u)mount helpers, such as (u)mount.nfs. The solution is to update nfs-utils to latest version which has support for libmount and build it with --enable-libmount-mount. Neil, could you please have a look into this? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=681106 https://bugzilla.novell.com/show_bug.cgi?id=681106#c7 --- Comment #7 from Neil Brown <nfbrown@novell.com> 2011-08-17 04:46:24 UTC --- I don't think that updating nfs-utils to a new version in 11.4 is acceptable, and it is rather a large change to backport. As "umount -i" works and works correctly I think the best solution for 11.4 is to recommend that approach. i.e. when a non-root user wants to unmount an NFS file system they should use umount -t /mount/point I will make sure that when nfs-utils-1.2.4 is added to Factory that it is build with --enable-libmount-mount. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=681106 https://bugzilla.novell.com/show_bug.cgi?id=681106#c8 --- Comment #8 from Petr Uzel <puzel@novell.com> 2011-08-17 10:56:17 UTC --- (In reply to comment #7)
I don't think that updating nfs-utils to a new version in 11.4 is acceptable, and it is rather a large change to backport.
I agree - I had only Factory in my mind when suggesting update.
I will make sure that when nfs-utils-1.2.4 is added to Factory that it is build with --enable-libmount-mount.
Great, thank you. Please include also this patch (not in 1.2.4): http://comments.gmane.org/gmane.linux.nfs/42585 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=681106 https://bugzilla.novell.com/show_bug.cgi?id=681106#c9 Neil Brown <nfbrown@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |Factory --- Comment #9 from Neil Brown <nfbrown@novell.com> 2011-08-18 08:23:46 UTC --- I have just submitted and update for Factory which updates to 1.2.4 plus various subsequent patches including the one mentioned. The new package uses libmount support. So this will soon be fixed in Factory. For 11.4 we recommend the work-around of using "umount -i". Thanks everyone. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=681106 https://bugzilla.novell.com/show_bug.cgi?id=681106#c10 --- Comment #10 from Bernhard Wiedemann <bwiedemann@novell.com> 2011-08-18 11:00:14 CEST --- This is an autogenerated message for OBS integration: This bug (681106) was mentioned in https://build.opensuse.org/request/show/79202 Factory / nfs-utils -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com