Hi, I'm having trouble configuring group mapping for zfs mount access in my unprivileged LXC.
I have a directory /zpool/media/ on the host which I passed to the container with a mount point at /mnt/media.
On the host:
My uid/gid mapping in the lxc config:
I have a directory /zpool/media/ on the host which I passed to the container with a mount point at /mnt/media.
On the host:
- The directory is owned by user root (uid=0) and group media (gid=1000).
- Permissions are 770 on the directory
- I have created user jellyfin (uid=1100) which is a member of the "media" group
- I am using the root user.
- uid 0 (root) is mapped to uid 1100 on the host (jellyfin user)
- I have created a group media here as well with gid=1000 and added the root LXC user to it
- gid 1000 (media) is mapped to gid 1000 on the host (media group)
My uid/gid mapping in the lxc config:
lxc.idmap: u 0 1100 1
lxc.idmap: u 1 100000 65535
lxc.idmap: g 0 100000 1000
lxc.idmap: g 1000 1000 1
If I map the root group (gid=0) in LXC to media group on the host it works. However I would like to get this working from the media group inside the LXC.lxc.idmap: g 1001 101001 64534