Hi, i've tried to properly setup the right permissions for a couple of days but even by looking at the docs and the forum i can't figure out how to do so.
I have a zpool, let's say
wich is owned by
.
Now, my goal is to share this folder with multiple lxc container, for istance jellyfin and qbittorrent.
I've used in the past this guide, but it can't solve the permissions when two containers use different users because it avoids the mapping by creating an user on the host that matches the user on the lxc+100'000. Since jellyfin uses user 110 and qbittorrent uses root, i can't have both lxc sharing the same folder.
Now, the doc says that i have to add these lines in the lxc config:
Should i change, for jellyfin, 1005 with 110 for the user and 1005 with 118 for the group?
And how about qbittorrent? How can i map the lxc root with the 1005 host?
I'm quite lost, and having both 1005 on host and guest makes it harder to understand which is which (imho).
I have a zpool, let's say
Code:
zpool-12tb/media/
Code:
mediaU:mediaUsers
Code:
groupadd -g 1005 mediaUsers
useradd mediaU -u 1005 -g 1005 -m -s /bin/bash
chown -R mediaU:mediaUsers /zpool-12tb/media
Now, my goal is to share this folder with multiple lxc container, for istance jellyfin and qbittorrent.
I've used in the past this guide, but it can't solve the permissions when two containers use different users because it avoids the mapping by creating an user on the host that matches the user on the lxc+100'000. Since jellyfin uses user 110 and qbittorrent uses root, i can't have both lxc sharing the same folder.
Now, the doc says that i have to add these lines in the lxc config:
Code:
# uid map: from uid 0 map 1005 uids (in the ct) to the range starting 100000 (on the host), so 0..1004 (ct) → 100000..101004 (host)
lxc.idmap = u 0 100000 1005
lxc.idmap = g 0 100000 1005
# we map 1 uid starting from uid 1005 onto 1005, so 1005 → 1005
lxc.idmap = u 1005 1005 1
lxc.idmap = g 1005 1005 1
# we map the rest of 65535 from 1006 upto 101006, so 1006..65535 → 101006..165535
lxc.idmap = u 1006 101006 64530
lxc.idmap = g 1006 101006 64530
Should i change, for jellyfin, 1005 with 110 for the user and 1005 with 118 for the group?
And how about qbittorrent? How can i map the lxc root with the 1005 host?
I'm quite lost, and having both 1005 on host and guest makes it harder to understand which is which (imho).