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

Bug#788546: nfs4 mount.nfs does not respect option "user" in fstab in Jessie



Hello Ingo.

On Fri, Jun 12, 2015 at 06:12:21PM +0200, Ingo wrote:
> 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):
[...]
> /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

Are you sure this is the correct syntax? I would expect that you
should specify the mountpoint (target directory) rather than the
source of the mount. eg. mount /home/ingo/leo.Bilder
Do using that still give you the same problem?

Might also be useful to have a log of what strace tells you about
running the command.

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

(Well, it's not a security issue unless you hand out root access yourself
to untrusted people.)

Regards,
Andreas Henriksson


Reply to: