[Bug 232021] zfs cannot mount 'dataset': Insufficient privileges
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Jul 2025 01:26:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232021
Rafael Grether <devnull@apt322.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |devnull@apt322.org
--- Comment #20 from Rafael Grether <devnull@apt322.org> ---
Guys,
Does it make any sense for a /home/user from a dataset created by "adduser" to
be owned by root:wheel when unmounted?
The user was created on that dataset, so it's assumed that the owner of that
dataset should be the user who was created, whether the dataset is mounted or
not.
# ls -l /home/
drwxr-xr-x 2 root wheel 2 Jul 7 01:10 testuser
# zfs mount zroot/home/testuser
# ls -l /home/
drwxr-xr-x 2 testuser testuser 2 Jul 7 01:10 testuser
It's perfectly fine if we're talking about any other dataset like
`zroot/whatever`, but it doesn't make sense when the dataset is created to
serve as a user's home directory.
A user's permission to mount their own dataset must still be explicitly granted
using `zfs allow`, so it doesn't make sense to me for a dataset mapped to the
user's home directory to be owned by root:wheel.
I think it only creates confusion when we need to grant the user permission to
allow `load-key && mount` on their own home, but they can't because
`/home/user` is owned by root:wheel.
Manually setting a `chown user:user` on home directory of their own dataset
feels counterintuitive.
What do you think?
--
You are receiving this mail because:
You are the assignee for the bug.