Non root user cannot access bind mount inside privileged lxc

RustySnail

New Member
Sep 10, 2022
13
0
1
I mounted a remote drive using rclone to my pve host for use in two privileged containers. I then created bind mounts in both containers but only root is able to access the mounts right now.

Admittedly I'm a bit of a noob with this stuff and am struggling to fix this. I have tried changing the permission in both the host and container for the mounts and change the owner in the lxc but nothing has worked so far. The application I am using is still unable to access the mounts.

In the lxc

Code:
root@sonarr:/mnt# ls -la
total 9
drwxr-xr-x  3 root root  3 Sep 10 05:10 .
drwxr-xr-x 18 root root 24 Sep 10 06:16 ..
drwxr-xr-x  1 root root  0 Sep 10 04:36 ultracc
root@sonarr:/mnt# chmod -R 777 /mnt/ultracc
root@sonarr:/mnt# ls -la
total 9
drwxr-xr-x  3 root root  3 Sep 10 05:10 .
drwxr-xr-x 18 root root 24 Sep 10 06:16 ..
drwxr-xr-x  1 root root  0 Sep 10 04:36 ultracc
root@sonarr:/mnt# chown -R 107:1000 /mnt/ultracc
root@sonarr:/mnt# ls -la
total 9
drwxr-xr-x  3 root root  3 Sep 10 05:10 .
drwxr-xr-x 18 root root 24 Sep 10 06:16 ..
drwxr-xr-x  1 root root  0 Sep 10 04:36 ultracc

At this point I'm completely lost.


Edit: I think this is a really stupid idea but running the application as root solves my problem so I'm just going to go with that for now
 
Last edited: