Priv. LXC's bind mount file permissions differ from host...

kroem

Active Member
Jul 12, 2016
45
0
26
35
(I know I must be missing something fundemental here, but my google-fu is failing me, so sorry in advance)

I have been using a simple bind mount without problems for a long time, but since I restored this LXC I have all kinds of permission problems. It's the same for other LXC's too. Storage is a zpool, if that matters.

LXC conf

arch: amd64
cores: 4
hostname: plex.kroem.eu
memory: 8192
mp0: /vol1/enc,mp=/media/enc
net0: name=eth0,bridge=vmbr0,hwaddr=C2:D5:0F:F4:AC:7C,ip=dhcp,type=veth
ostype: debian
rootfs: cat_zfs_SSD-mirror_VM-02:subvol-117-disk-0,size=100G
swap: 8192


root@cat:~# find /vol1/enc -maxdepth 1 -type d -exec ls -ld "{}" \;
drwxrwxrwx 8 root root 8 May 4 20:54 /vol1/enc
drwxrwxrwx 10 root root 10 Mar 31 13:24 /vol1/enc/config
drwxrwxrwx 87 root root 87 Mar 31 17:14 /vol1/enc/movies
drwxrwxrwx 4 root root 4 Mar 31 16:54 /vol1/enc/downloads
drwxrwxrwx 3 root root 3 Apr 16 19:27 /vol1/enc/template
drwxrwxrwx 646 root root 646 May 4 20:03 /vol1/enc/music
drwxrwxrwx 20 root root 21 Mar 31 17:13 /vol1/enc/tvshows


Inside LXC
root@plex:~# find /media/enc -maxdepth 1 -type d -exec ls -ld "{}" \;
drwxrwxrwx 8 root root 8 May 4 18:54 /media/enc
drwxr-xr-x 2 root root 2 Mar 31 10:42 /media/enc/config
drwxr-xr-x 17 root root 17 Apr 16 18:09 /media/enc/movies
drwxr-xr-x 2 root root 2 Mar 29 10:38 /media/enc/downloads
drwxrwxrwx 3 root root 3 Apr 16 17:27 /media/enc/template
drwxr-xr-x 2 nobody nogroup 2 May 4 18:36 /media/enc/music
drwxr-xr-x 8 root root 8 Apr 16 18:10 /media/enc/tvshows

The LXC also doesn't see all folder, but some, like an example (to paste all would be too long...)

root@cat:~# ls -la /vol1/enc/config/
total 73
drwxrwxrwx 10 root root 10 Mar 31 13:24 .
drwxrwxrwx 8 root root 8 May 4 20:54 ..
drwxrwxrwx 3 root root 3 Mar 31 12:47 bazarr
drwxrwxrwx 3 root root 3 Mar 31 12:45 jackett
drwxrwxrwx 3 root root 3 Mar 31 12:45 lidarr
drwxrwxrwx 5 root root 5 Mar 31 13:35 nginx
drwxrwxrwx 3 root root 3 Mar 31 12:44 radarr
drwxrwxrwx 3 root root 3 Mar 31 12:45 sonarr
drwxrwxrwx 3 root root 3 Mar 31 12:47 tautulli
drwxrwxrwx 4 root root 4 Mar 31 12:46 transmission


root@plex:~# ls -la /media/enc/config/
total 52
drwxr-xr-x 2 root root 2 Mar 31 10:42 .
drwxrwxrwx 8 root root 8 May 4 18:54 ..
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!