Your message dated Sun, 27 Dec 2020 23:50:07 +0100 with message-id <[email protected]> and subject line Re: Bug#788546: nfs4 mount.nfs does not respect option "user" in fstab in Jessie has caused the Debian Bug report #788546, regarding mounting as non-root using nfs-source from fstab as argument fails to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 788546: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788546 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: mount Version: 2.25.2-6 Severity: normal Dear Maintainer, *** Reporter, please consider answering these questions, where appropriate *** * What led up to the situation? Trying to mount a nfs4-export as declared in fstab with option "user" as a normal user * What exactly did you do (or not do) that was effective (or ineffective)? I already filed a bug on this against "mount.nfs" as bug # 788547. But now it appears it is the "mount" command which does not handle th option user correctly. Seems it gets no attention there. This bug does not exist in Wheezy, showed up after upgrade to Jessie. I already asked there to assign this bug also to the package "mount" without any reaction, so I do report it here against "mount". * What was the outcome of this action? fstab entry: leo:/Bilder /home/ingo/leo.Bilder nfs4 noauto,rw,user,soft,relatime 0 0 # showmount -e leo Export list for leo: /srv/nfs4/Bilder 192.168.33.0/24 /srv/nfs4 192.168.33.0/24 Mounting as user (UID=1000) fails: $ LANG=en_US.UTF-8 mount leo:/Bilder mount: leo:/Bilder: No such file or directory However it is possible to perform the mount as "root". Umount as user (UID=1000) fails with same "non informative" message: $ LANG=en_US.UTF-8 umount leo:/Bilder umount: leo:/Bilder: No such file or directory Using "mount.nfs" instead allows mounting by a user: Executing mount.nfs as a user with full path does not respect the mountpoint as configured in fstab: ~$ /sbin/mount.nfs leo:/Bilder ~$ mount.nfs: no mount point provided Adding the mountpoint works for both mount and umount: ~$ /sbin/mount.nfs leo:/Bilder /home/ingo/leo.Bilder ~$ /sbin/umount.nfs /home/ingo/leo.Bilder This is a security flaw as users cannot mount/umount on demand without root-privileges. * What outcome did you expect instead? mount to work as it does in Wheezy and according to documentation (mount, fstab), which means respect the option "user" -- System Information: Debian Release: 8.1 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages mount depends on: ii libc6 2.19-18 ii libmount1 2.25.2-6 ii libselinux1 2.3-2 ii libsmartcols1 2.25.2-6 mount recommends no packages. Versions of packages mount suggests: ii nfs-common 1:1.2.8-9 -- no debconf information
--- End Message ---
--- Begin Message ---Version: 2.36.1-3 * Ingo <[email protected]>: > Am 01.08.2016 um 15:33 schrieb Andreas Henriksson: > > On Mon, Jul 25, 2016 at 10:13:29AM +0200, Ingo wrote: > >> Am 24.07.2016 um 22:07 schrieb Andreas Henriksson: > >> But "man mount" explicitely states: > > [...] > > > > You're right, the manpage explicitly says in multiple places > > that what you're doing should work... I'm still thinking ... > ... to adjust the manpages? > > using the mountpoint is always preferrable/recommended though. ;) [..] It appears upstream has improved this in two ways: 1) mount as non-superuser now fails with a descriptive error: mount: /mnt: must be superuser to use mount. 2) the man page recommends to specify the mountpoint, for non-superusers. Marking as fixed in the version for bullseye. Chris
--- End Message ---

