Hi Guys,
I a trying to convert my samba lxc to a unprivleged one.
Lets assume for the sake of simplicity i have one directory to map: Downloads
host:
I only use the gid in my samba config, so i dont care about the uid. The users that want access to Downloads are "member" of gid 1002.
So i need the real gid 1002 in my unprivleged container. I tried to map the gid according to this doc like this: (ignoring the user uid mapping)
lxc.conf:
But the container wont start.
Is something like this possible? Can someone guide me in the right direction?
I a trying to convert my samba lxc to a unprivleged one.
Lets assume for the sake of simplicity i have one directory to map: Downloads
host:
Code:
root@pve:~# ls -ln /wdpool/NAS/
drwxrwx--- 8 0 1002 11 Jun 20 10:35 Downloads
I only use the gid in my samba config, so i dont care about the uid. The users that want access to Downloads are "member" of gid 1002.
So i need the real gid 1002 in my unprivleged container. I tried to map the gid according to this doc like this: (ignoring the user uid mapping)
lxc.conf:
Code:
unprivileged: 1
mp0: /wdpool/NAS/Downloads,mp=/mnt/NAS/Downloads
lxc.id_map = g 0 100000 1002
lxc.id_map = g 1002 1002 1
lxc.id_map = g 1003 101003 64530
Code:
root@pve:~# cat /etc/subgid
root:1002:1
But the container wont start.
Is something like this possible? Can someone guide me in the right direction?