Hello,
recently, I decided to change how my NAS should work (VM with OMV ---> LXC with Cockpit) to make better use of the shared folders/files/mount because I wanted an arr-Stack. I found these awesome Tutorials Tutorial bind mounts and ZFS bind mounts. I got it to work except for the Tdarr LXC...... (I used the tteck script to create this LXC, all the rest was build manually).
I used the same mount point, the same group, usermod etc. but I still can't see the files inside the directory. Jellyfin, Cockpit, Sonarr, Radarr, .... all work with this group mapping config
Chown and chmod both give me an error message that even the root user of the lxc is not allowed to change something
Here the permissions structure from the PVE host
and here from the Tdarr LXC
Here my config of the ARR LXC:
Here the config of the TDARR LXC
If someone could point me in the right direction I would be really happy
recently, I decided to change how my NAS should work (VM with OMV ---> LXC with Cockpit) to make better use of the shared folders/files/mount because I wanted an arr-Stack. I found these awesome Tutorials Tutorial bind mounts and ZFS bind mounts. I got it to work except for the Tdarr LXC...... (I used the tteck script to create this LXC, all the rest was build manually).
I used the same mount point, the same group, usermod etc. but I still can't see the files inside the directory. Jellyfin, Cockpit, Sonarr, Radarr, .... all work with this group mapping config
Chown and chmod both give me an error message that even the root user of the lxc is not allowed to change something
Code:
root@tdarr:~# chown -R :raid-users /mnt/
chown: changing group of '/mnt/media/movies': Operation not permitted
chown: changing group of '/mnt/media/music': Operation not permitted
chown: changing group of '/mnt/media/tv': Operation not permitted
chown: changing group of '/mnt/media/books': Operation not permitted
Here the permissions structure from the PVE host
Code:
ls /raid/media/ -all
total 35
drwxrwxr-x 6 raid raid-users 6 Nov 23 17:49 .
drwxrwxr-x 7 raid raid-users 7 Nov 21 23:23 ..
drwxrwxr-x 2 raid raid-users 2 Nov 23 16:56 books
drwxrwxr-x 9 raid raid-users 10 Dec 24 13:20 movies
drwxrwxr-x 6 raid raid-users 6 Dec 17 16:54 music
drwxrwxr-x 9 raid raid-users 9 Dec 17 15:43 tv
Code:
ls /mnt/media/ -all
total 7
drwxrwxr-x 6 tdarr raid-users 6 Nov 23 17:49 .
drwxrwxr-x 3 tdarr raid-users 4096 Dec 1 00:20 ..
drwxr-xr-x 2 nobody nogroup 2 Nov 21 23:19 books
drwxr-xr-x 2 nobody nogroup 2 Nov 21 23:20 movies
drwxr-xr-x 2 nobody nogroup 2 Nov 21 23:20 music
drwxr-xr-x 2 nobody nogroup 2 Nov 21 23:20 tv
Here my config of the ARR LXC:
Code:
root@arr-Stack:~# id sonarr
uid=111(sonarr) gid=1000(media) groups=1000(media),10000(raid-users)
Code:
# File permission for ZFS
#groupadd -g 10000 raid-users
#
#useradd arr -u 1000 -g 10000 -m -s /bin/bash
arch: amd64
cores: 4
features: nesting=1
hostname: arr-Stack
memory: 4096
mp0: /raid/media,mp=/mnt/media
mp1: /raid/media/books,mp=/mnt/media/books
mp10: /raid/usenet/complete/tv,mp=/mnt/usenet/complete/tv
mp11: /raid/usenet/incomplete,mp=/mnt/usenet/incomplete
mp12: /raid/audiobook,mp=/mnt/audiobook
mp2: /raid/media/movies,mp=/mnt/media/movies
mp3: /raid/media/music,mp=/mnt/media/music
mp4: /raid/media/tv,mp=/mnt/media/tv
mp5: /raid/usenet,mp=/mnt/usenet
mp6: /raid/usenet/complete,mp=/mnt/usenet/complete
mp7: /raid/usenet/complete/books,mp=/mnt/usenet/complete/books
mp8: /raid/usenet/complete/movies,mp=/mnt/usenet/complete/movies
mp9: /raid/usenet/complete/music,mp=/mnt/usenet/complete/music
net0: name=eth0,bridge=vmbr0,firewall=1,gw=192.168.20.1,hwaddr=BC:2>
onboot: 1
ostype: ubuntu
rootfs: NVME:vm-107-disk-0,size=12G
swap: 4096
tags: external
unprivileged: 1
Here the config of the TDARR LXC
Code:
root@tdarr:~# id tdarr
uid=1000(tdarr) gid=10000(raid-users) groups=10000(raid-users),100(users)
Code:
arch: amd64
cores: 2
dev0: /dev/dri/card1,gid=44
dev1: /dev/dri/renderD128,gid=104
features: nesting=1
hostname: tdarr
memory: 2048
mp0: /raid/media/movies,mp=/mnt/media/movies/
mp1: /raid/media/tv,mp=/mnt/media/tv/
mp2: /raid/media,mp=/mnt/media/
net0: name=eth0,bridge=vmbr0,gw=192.168.20.1,hwaddr=BC:24:11:BA:62:>
onboot: 1
ostype: debian
rootfs: NVME:vm-110-disk-0,size=4G
swap: 512
tags: internal;proxmox-helper-scripts
unprivileged: 1
If someone could point me in the right direction I would be really happy