Question about local directory bind mount points and permissions

kast0r

New Member
Jun 29, 2022
11
1
1
Hello,

I created several Unprivileged LXC container to start my home server. Right now I have a container that serves as a fileserver and a container that serves to download torrents.

I applied on each container the way to bind a mount point from a host by following the wiki on Unprivileged LXC Containers.

So far, everything is working fine. Each container sees the mount point with the correct uid/gid of the host.

On the Transmission container, I created an identical gid (1005) to then add the debian-transmission user to this group. So this user can download the torrents in the mounted folder. (/mnt/downloads)

My problem is the following: On the fileserver container, when transmission has finished downloading a movie i.e. , the file has the permissions of the debian-transmission user, so debian-transmission:debian-transmission. This prevents me from being able to modify, copy, delete anything that happens from this user. Even though this user is in group 1005. I also see that from the fileserver the user's group is "rdma" a group that already exists on the current fileserver.

So, I don't know what to do anymore to have access to everything that is in the mount point from the fileserver.

What I would like to do is that no matter which user brings files into the mount point of the transmission container, that I can access them without restrictions from the file server to make modifications to them as I wish. I don't know if I'm missing a configuration part on the fileserver side to be able to access everything, but on the host directly, permissions are set that user/group 1005:1005 is the owner of everything what is inside.

On the host itself, when transmission completes a download, the file has the following permissions: 100110:100118. So, in the end, even the host is no longer 100% owner of his folder.

Can anyone help me understand better?

Thanks!
 

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!