Container Mount point permissions

Henry

Member
Jan 1, 2016
83
0
6
51
I have a CT that mounts an external HDD @ /mnt/external-hdd which works.

root@pve:~# cat /etc/pve/lxc/1018.conf
arch: amd64
cpulimit: 1
cpuunits: 1024
hostname: media
memory: 512
mp0: /dev/sdc1,mp=/mnt/external-hdd
nameserver: 8.8.8.8
net0: bridge=vmbr1,hwaddr=32:63:62:63:37:37,ip=dhcp,name=eth0,type=veth
ostype: ubuntu
rootfs: virtual-machines:vm-1018-disk-1,size=8G
searchdomain: ad.mydomain.com
swap: 512
root@pve:~# pct start 1018
root@pve:~# pct enter 1018
root@media:~# ls -l /mnt
total 696
dr-x------ 1 root root 712704 Aug 29 2015 external-hdd
root@media:~#


The CT runs a plex media server which works however is unable to access the contents of the external hdd due to permissions:
root@media:~# id plex
uid=105(plex) gid=112(plex) groups=112(plex)
root@media:~#

What is the best way to resolve this so that the user "plex" can access the contents of the external hdd?
 

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!