Joined: 01 Dec 2002
|Posted: Sun May 19, 2013 7:57 pm Post subject: umount.nfs4: You are not permitted to unmount
I guess since the last big system update, I'm not able to unmount a NFSv4 share anymore as user. Mounting as user and unmounting as root works quite well. I'm not the only one with that problem:
It seems, other distros are already fighting a long time against that nfs-monster. I noticed it today for the first time.
- Installed NFSv4. Error occurs with the services started via OpenRC but also with Systemd.
- mounting as user works. For umount you need to have root permissions.
- In the debian-bugs, they write something of compiling nfs-comming with libmount. Such a USE-Flag doesn't exist at least for nfs-utils
- Also the mention, that the mount data should be available in /run/mount/utab. That file exists on my computer but is empty.
- Client -
|miniding:/home_myuser /home/myuser/miniding nfs4 noauto,users,rw,intr,noatime,nodiratime,hard,rsize=32768,wsize=32768 0 0 |
- Server -
|mount miniding <--- works fine
umount miniding <--- as user
umount.nfs4: You are not permitted to unmount /home/myuser/miniding
umount miniding/ <--- as root: works fine
|miniding:/home_myuser /home/myuser/miniding nfs4 rw,noatime,nodiratime,vers=4.0,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.109.20,local_lock=none,addr=192.168.109.21 0 0 |
Just found out, why it isn't working. On the machines, where it isn't working:
|ls -al /etc: |
|lrwxrwxrwx 1 root root 17 6. Mai 18:46 mtab -> /proc/self/mounts |
On the on computer, where it's still working:
|ls -al /etc: |
|-rw-r--r-- 1 root root 1582 19. Mai 21:51 mtab |
I linked /etc/mtab to /proc/self/mounts in order to switch over to systemd.
Just found out more:
|la /proc/self/mounts: |
|-r--r--r-- 1 root root 0 19. Mai 22:00 /proc/self/mounts |
So I guess, because the file is written by the kernel, it isn't writeable. And the umount.nfs4 maybe wants to write to mtab? Could that be?
Any idea what's to do here? Just replace the link with the old file?