Storage Permissions

dkirk

Member
Jun 8, 2012
2
0
21
Hey,

I'm pretty new to Proxmox, but I think I know my way around Linux fairly well. Can someone please help me get my head around a permissions problem I'm having?

I've just installed Proxmox 7.0.10 onto a computer with an SSD and a HDD. I've created a Centos 8 container and installed Plex server. All of this is on the SSD. No problems so far. I created a directory on my 2TB HDD and added a Mount Point in the container resources. I copied some media into the Plex directory on the HDD (on Proxmox, not Plex) and I can see it and watch it in Plex. If I try to add content to that same place through Plex, it says 'Permission denied'.

If I try to change the ownership of the folders in Plex it says 'operation not permitted'.

I'm guessing Proxmox can't see the users and groups in my Plex container, so how do I set permissions on that directory so my plex user can write to it?


Thanks

David
 
in an unprivileged container, the user and group IDs are mapped - so they are not the same on the hypervisor and inside the container. if the owners are wrong inside the container when mounting a pre-existing volume or directory into the container, you can correct this from the hypervisor (with pct mount ... followed by chown ... - don't forget to unmount again when you are done ;))
 
Hi Fabian,

Thanks for your reply. I used pct mount 101 to mount my container and it told me where it mounted it to. I went into that directory and used chmod to change ownership to user 10000 which is root in my container. I unmounted the containter and then went into my Plex container and changed the ownership to the plex user.

Everything seems to be working perfectly now. Thank you so much for your help. I'm very happy.


Thanks

David
 

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!