Thanks for that info,
Id seen the GID and UID when setting up my containers in docker. So I have an idea of what needs to be done, but not how.
So right now I have two LXCs; one for docker and one for Plex both accessing the same share as mount points added to the LXC's config.
I keep seeing CHOWN the folder for the group. But I don't want to take ownership, just give access.
So... create a user called Plex and a group called Media on the PVE host. Get the UID and GID
Create the same user/grp on the Docker host and the Plex host (and change Plex to run as that user? no idea how to do that) and then match the GID and UID. Also change the Docker Cts to run as that usr/grp
# usermod -u 2005 Plex
# groupmod -g 3000 Media
# ls -l
As an example
Give group Media RW access to the /mnt/share (no idea how to do that, as I said, root has ownership, don't want to change that. Just give the media group RW access)
And badda boom, I can change my media folder?
So I need to know how to give access to a folder and change the Plex user.
Actually changing the plex user looks pretty easy lol
https://dausruddin.com/how-to-change-plex-user-running-under-in-ubuntu/
So this is how I change file permissions?
https://www.pluralsight.com/blog/it-ops/linux-file-permissions
So I switch to the Plex user and do this?? Can I not add a group to the directory as root?? That would seem like the simple way to do it?
chmod +rwx /mnt/share
Linux is weird lol