On my host I have a ZFS dataset looking like this:
I have a LXC with a user whose Id
This user now has access to everything in the
but on the guest I get:
I realize this must have something to do with the folders actually being ZFS mountpoints, but I don't know how to fix the issue. Is there anything I can do besides mounting each child-dataset as its own mountpoint?
Code:
NAME MOUNTPOINT
Data /Data
Data/Nas /Data/Nas
Data/Nas/Documents /Data/Nas/Documents
Data/Nas/Photos /Data/Nas/Photos
I have a LXC with a user whose Id
1000 is mapped to 1000 and which has /Data/Nas mounted:
Code:
excerpt from lxc config
mp0: /Data/Nas,mp=/mnt/Data
unprivileged: 1
lxc.idmap: u 0 100000 1000
lxc.idmap: g 0 100000 1000
lxc.idmap: u 1000 1000 1
lxc.idmap: g 1000 1000 1
lxc.idmap: u 1001 101001 64535
lxc.idmap: g 1001 101001 64535
This user now has access to everything in the
/Data/Nas directory of the host, just not to the directories where the child-datasets are mounted. The ownership on the host is set correctly:
Code:
# ls -l /Data/Nas
total 56
drwxr-xr-x 3 1000 1000 3 Jan 24 18:55 Documents
drwxr-xr-x 2 1000 1000 2 Jan 24 16:40 Images
drwxr-xr-x 2 1000 1000 2 Jan 24 16:40 Test
Code:
# ls -l /mnt/Data
total 56
drwxr-xr-x 3 nobody nogroup 3 Jan 24 18:55 Documents
drwxr-xr-x 2 nobody nogroup 2 Jan 24 16:40 Images
drwxr-xr-x 2 1000 1000 2 Jan 24 16:40 Test
I realize this must have something to do with the folders actually being ZFS mountpoints, but I don't know how to fix the issue. Is there anything I can do besides mounting each child-dataset as its own mountpoint?