Hi
I would very much appreciate advise how to set for five users an Unpriv LXC UID mapping for ZFS Bind Mount to SMB File server for family
I'm lost with several UID problems both host and guest. There are guides for single user, which worked as start but I need it working for five users.
How should chown be set at PVE Host and Guest LXC for all five unprivileged LXC Samba user to access the two zfs data sets?
Is this the way to go on lxc 100.conf with UID seetings?
mp0: /two/d,mp=/mnt/two/d,backup=0
mp1: /one/d,mp=/mnt/one/d,backup=0
..
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 1
lxc.idmap: g 1001 101001 1
lxc.idmap: u 1002 101002 1
lxc.idmap: g 1002 101002 1
lxc.idmap: u 1003 101003 1
lxc.idmap: g 1003 101003 1
lxc.idmap: u 1004 101004 1
lxc.idmap: g 1004 101004 1
lxc.idmap: u 1005 101005 64525
lxc.idmap: g 1005 101005 64525
other info HOST
oot@pve:/etc/pve/lxc# zfs list
NAME USED AVAIL REFER MOUNTPOINT
one 168G 3.35T 112K /one
one/d 168G 3.35T 168G /one/d
two 122G 3.39T 112K /two
two/d 122G 3.39T 122G /two/d
other info GUEST 100.conf LXC
cat /etc/samba/smb.conf
[onewd]
comment = Private Folder
path = /mnt/one/d
writable = yes
guest ok = no
valid users = user1, user2, user3, user4, user5
force create mode = 770
force directory mode = 770
inherit permissions = yes
[twowd]
comment = Private Folder
path = /mnt/two/d
writable = yes
guest ok = no
valid users = user1, user2, user3, user4, user5
force create mode = 770
force directory mode = 770
inherit permissions = yes
Many thanks in advance.
I would very much appreciate advise how to set for five users an Unpriv LXC UID mapping for ZFS Bind Mount to SMB File server for family
I'm lost with several UID problems both host and guest. There are guides for single user, which worked as start but I need it working for five users.
How should chown be set at PVE Host and Guest LXC for all five unprivileged LXC Samba user to access the two zfs data sets?
Is this the way to go on lxc 100.conf with UID seetings?
mp0: /two/d,mp=/mnt/two/d,backup=0
mp1: /one/d,mp=/mnt/one/d,backup=0
..
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 1
lxc.idmap: g 1001 101001 1
lxc.idmap: u 1002 101002 1
lxc.idmap: g 1002 101002 1
lxc.idmap: u 1003 101003 1
lxc.idmap: g 1003 101003 1
lxc.idmap: u 1004 101004 1
lxc.idmap: g 1004 101004 1
lxc.idmap: u 1005 101005 64525
lxc.idmap: g 1005 101005 64525
other info HOST
oot@pve:/etc/pve/lxc# zfs list
NAME USED AVAIL REFER MOUNTPOINT
one 168G 3.35T 112K /one
one/d 168G 3.35T 168G /one/d
two 122G 3.39T 112K /two
two/d 122G 3.39T 122G /two/d
other info GUEST 100.conf LXC
cat /etc/samba/smb.conf
[onewd]
comment = Private Folder
path = /mnt/one/d
writable = yes
guest ok = no
valid users = user1, user2, user3, user4, user5
force create mode = 770
force directory mode = 770
inherit permissions = yes
[twowd]
comment = Private Folder
path = /mnt/two/d
writable = yes
guest ok = no
valid users = user1, user2, user3, user4, user5
force create mode = 770
force directory mode = 770
inherit permissions = yes
Many thanks in advance.