Mike Spencer
2023-02-16 06:01:41 UTC
I've been mounting one Linux host on another across the LAN forever,
and umounting same, always as plain user.
In Slack 15, I can mount another host via nfs but I can't umount it.
enoch% mount /mnt/bogus
enoch% umount /mnt/bogus
umount.nfs: You are not permitted to unmount /mnt/bogus
I have to become root to umount it.
/etc/fstab: Same problem with either of these
bogus:/ /mnt/bogus nfs noauto,user,rw,hard,intr 0 0
bogus:/ /mnt/bogus nfs noauto,users,rw,hard,intr 0 0
mount(8) manpage:
Non-superuser mounts
Normally, only the superuser can mount filesystems. However,
when fstab contains the user option on a line, anybody can
mount the corresponding filesystem.
.....
Only the user that mounted a filesystem can unmount it
again. If any user should be able to unmount it, then use users
instead of user in the fstab line.
I don't see anything in manpaages for nfs(5), mount.nfs(8), fstab(5),
umount(8) that helps.
What has changed in 15? How do I revert to former behavior?
and umounting same, always as plain user.
In Slack 15, I can mount another host via nfs but I can't umount it.
enoch% mount /mnt/bogus
enoch% umount /mnt/bogus
umount.nfs: You are not permitted to unmount /mnt/bogus
I have to become root to umount it.
/etc/fstab: Same problem with either of these
bogus:/ /mnt/bogus nfs noauto,user,rw,hard,intr 0 0
bogus:/ /mnt/bogus nfs noauto,users,rw,hard,intr 0 0
mount(8) manpage:
Non-superuser mounts
Normally, only the superuser can mount filesystems. However,
when fstab contains the user option on a line, anybody can
mount the corresponding filesystem.
.....
Only the user that mounted a filesystem can unmount it
again. If any user should be able to unmount it, then use users
instead of user in the fstab line.
I don't see anything in manpaages for nfs(5), mount.nfs(8), fstab(5),
umount(8) that helps.
What has changed in 15? How do I revert to former behavior?
--
Mike Spencer Nova Scotia, Canada
Mike Spencer Nova Scotia, Canada