Public bug reported:


I've noticed that if my NFS mounts do not have the 'auto' option,
rpc.statd does not start automatically, without a password.

When I try to mount the share, I'm prompted for the sudo password, in order to 
start rpc.statd.
If the current user does not know the password, he cannot start rpc.statd and 
thus cannot mount the share.

Here is a sample session:
$ mount /media/xxx
[a popup window opens to prompt for a password, choose "cancel"]
Failed to start rpc-statd.service: Access denied
See system logs and 'systemctl status rpc-statd.service' for details.
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified

/var/log/syslog contains:
Sep 17 20:22:41 mcqueen rpc.statd[5160]: Opening /run/ failed: 
Permission denied

$ systemctl status rpc-statd.service
‚óŹ rpc-statd.service - NFS status monitor for NFSv2/3 locking.
   Loaded: loaded (/lib/systemd/system/rpc-statd.service; enabled; vendor preset
   Active: inactive (dead)

/etc/fstab entry:  /media/xxx       nfs     user,noauto    0       0

Of course, if I enter the sudo password, or if I manually start
rpc.statd as root before trying to mount, the mount operation succeeds.

Similarly, if I replace "noauto" with "auto", rpc.statd is started
during the boot sequence, and everything works.

Yet, I'd expect that any user be able to mount this share, since it has
the "user" option.

Problem currently noticed with ubuntu 16.04.

  Installed: 1:1.2.8-9ubuntu12
  Candidate: 1:1.2.8-9ubuntu12
  Version table:
 *** 1:1.2.8-9ubuntu12 500
        500 xenial/main amd64 Packages
        100 /var/lib/dpkg/status

** Affects: nfs-utils (Ubuntu)
     Importance: Undecided
         Status: New

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  rpc.statd not started automatically

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to