I am moving from an debian-server (odroid) to a proxmox-server. I have a 2tb-ssd for some media in my proxmox, so that is what i did:
- i mounted the smaba-share from my old server in proxmox (not in the lxc “ausiobookshelf”)
- i moved the data from the old server to the lxc-mountpoint “audiobooks” on my proxmox
This worked but now i have trouble to give permissions. In proxmox i can edit the permissions but there is no user “audiobookshelf” in the proxmox-root. In the lxc i have the user “audiobookshelf” but i have no rights to edit the permissions.
Question: What is the best solution to move data to lxc-mountpoints regarding the permissions? Should i use a systemwide user or group? Or should i mount the samba-share from the old server in the lxc?
audiobookshelf is only the beginning. SABnzbd and jellyfin will follow so i ask in common… ;)
I’m making some assumptions, namely that you’re using an unprivileged LXC container and the mount point is a bind mount.
Unprivileged LXC shift user ID numbers so that an escape won’t result in root access to the host. The root user (uid 0) in the container is actually uid 100000 from the perspective of the Proxmox host.
What I usually do is set ownership of my bind mounts to that high-numbered ID (so something like
chown -R 100000:100000 /path/to/bind/mount
) from Proxmox. Then the root user in the container will be able to set whatever permissions you need directly.