Proxmox 7.2 samba on host unprivileged lxc empty directory problem

Forssux

Member
Mar 27, 2022
62
4
13
Hi There,

I wanted to experiment with jellyfin so I installed a Debian 11 container.
I have my data on a zfs with dataset QData\QMedia etc
I have samba up and running and the shares are accessible from windows computers.
However I can't seem to access the content inside the root mounted directory.

Code:
samba is on the PVE host and uses security = user
[TrouwFotos]
comment = Hier staat media
path = /mnt/QData/QMedia/QTrouwFotos
read only = No
guest ok = yes
valid users = guyf eveline jellyfin @qnap
force create mode = 770
force directory mode = 770
inherrit permissions = yes
writeable = yes
[TrouwFilms]
comment = Hier staat media
path = /mnt/QData/QMedia/QTrouwFilms
read only = No
guest ok = yes
valid users = guyf eveline jellyfin @qnap
force create mode = 770
force directory mode = 770
inherrit permissions = yes
writeable = yes
[QMedia]
comment = Hier staat media
path = /mnt/QData/QMedia
read only = No
guest ok = yes
valid users = guyf eveline jellyfin @qnap
force create mode = 770
force directory mode = 770
inherrit permissions = yes
writeable = yes

root@pve:/# pdbedit -L
guyf:1001:guy forssman
jellyfin:1006:
eveline:1002:eveline hendrick

I altered the config from the container

Code:
nano /etc/pve/lxc/104.conf
arch: amd64
cores: 2
features: nesting=1
hostname: jellyfin
memory: 2048
mp0: /mnt/QData/QMedia,mp=/mnt/jellyfin
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.1.1,hwaddr=DA:07:72:98:49:94,ip=192.168.1.215/24,type=veth
ostype: debian
rootfs: ISO-Container:104/vm-104-disk-1.raw,size=8G
swap: 512
unprivileged: 1
lxc.idmap: u 0 100000 1000
lxc.idmap: g 0 100000 1003
lxc.idmap: u 1001 1001 1
lxc.idmap: g 1003 1003 1
lxc.idmap: u 1002 101002 64534
lxc.idmap: g 1006 101006 64530
/etc/subuid contains
Code:
root:1001:1
root:1005:1
root:1006:1
root:100000:65536
/etc/subgid contains
Code:
root:1003:1
root:1005:1
root:100000:65536


Changing the following line in /etc/pve/lxc/104.conf
Code:
mp0: /mnt/QData/QMedia,mp=/mnt/jellyfin ==> mp0: /mnt/QData/QMedia/QTrouwFilms,mp=/mnt/jellyfin
When I change this I can see my content, however I would rather not use al the possible subfolders in a mp path separately.

What am I missing?

Kind regards,
Guy
 
Last edited: