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: nfs-common
Version: 1:1.2.8-9
Severity: serious

Since upgrade of the client from Wheezy to Jessie I am no longer able to
mount nfs4-exports from a host (leo) running Wheezy as a normal user
(UID=1000):

# showmount -e leo
Export list for leo:
/srv/nfs4/Bilder 192.168.33.0/24
/srv/nfs4        192.168.33.0/24


/etc/fstab entries on the clients (Jessi and Wheezy):
leo:/Bilder /home/ingo/leo.Bilder nfs4 noauto,rw,user,soft,relatime 0 0

In Wheezy all works as expected, in Jessie mount fails with:
$ 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

This is a security flaw as users cannot mount/umount on demand without
root-privileges.

--- 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 ---

Reply via email to