[SOLVED] LXC Container Shared Directory Permissions

manjotsc

Member
Jul 2, 2020
72
6
13
Montreal, Quebec
I added a directory to a lxc container to be shared, how to I grant permission to LXC Container's user from Proxmox.

Shared Directory: mp0: /mnt/4TB/Plex,mp=/mnt/Plex

Thanks,

Code:
arch: amd64
cores: 2
hostname: WebServer
memory: 2000
mp0: /mnt/4TB/Plex,mp=/mnt/Plex
nameserver: 192.168.40.4 192.168.40.1
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=2a:e7:4e:5e:19:f6,ip=dhcp,type=veth
net1: name=eth88,bridge=vmbr0,firewall=1,hwaddr=ba:b1:cd:99:7a:88,ip=dhcp,type=veth
net2: name=eth7,bridge=vmbr0,firewall=1,hwaddr=22:ff:42:cc:3b:e7,ip=dhcp,type=veth
onboot: 1
ostype: ubuntu
rootfs: VMDrive:108/vm-108-disk-0.raw,size=30G
searchdomain: manjot.net
startup: order=2
swap: 2000
unprivileged: 1
 
I added a directory to a lxc container to be shared, how to I grant permission to LXC Container's user from Proxmox.

you need to modify the file permissions or change the file owner. with a default unprivileged container, chown 100000:100000 -R /mnt/4TB/Plex would set the owner of the files to uid/gid 100000, which is root user in the container (root uid = 0 in container, 100000 outside the container)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, 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 yours easily in our online shop.

Buy now!