Hi,
I have mounted an exFat USB drive to the PROXMOX host, using an fstab mount:
which I have all the permissions to be able to use it as root:
Then, I have several LXCs mounted with privileges, and mount point to the USB disk, so I can use it directly.
My problem is that on one of the machines I want to mount a SAMBA server to share this hard drive, so that multiple users can use it.
The problem is with the permissions: only the root user has write permissions, the rest of the users can only read.
I have tried everything I have found but there is no way.
The only thing I have not done is what is indicated in this tutorial, but it talks about writing permission in an unprivileged LXC with the LXC user.
https://pve.proxmox.com/wiki/Unprivileged_LXC_containers
But apart from not understanding how it would be done, would it give me something? Since they would continue to be users other than root.
I would be grateful if you could help me, if only to tell me that what I want to do is either not possible or very complicated.
But I've been fighting with this for weeks without getting any progress.
Thanks
The last option is for everyone to use root access, and that would work.
I have mounted an exFat USB drive to the PROXMOX host, using an fstab mount:
Code:
/dev/sdb1/media/USB1 exfat defaults,uid=0,gid=0 0 0
Code:
root@server:/media/USB1# ls -l
total 48384
drwxr-xr-x 2 root root 131072 Oct 9 10:45 'New Folder'
drwxr-xr-x 6 root root 131072 Apr 11 2022 Test
drwxr-xr-x 6 root root 131072 Feb 8 2022 SERVER_Files
drwxr-xr-x 6 root root 131072 Feb 9 2022 SERVER_Media
Then, I have several LXCs mounted with privileges, and mount point to the USB disk, so I can use it directly.
My problem is that on one of the machines I want to mount a SAMBA server to share this hard drive, so that multiple users can use it.
The problem is with the permissions: only the root user has write permissions, the rest of the users can only read.
I have tried everything I have found but there is no way.
Code:
root@Almacenamiento:/media/USB1# ls -l
total 48384
drwxr-xr-x 2 root root 131072 oct 9 10:45 'Nwe Folder'
drwxr-xr-x 6 root root 131072 abr 11 2022 Test
drwxr-xr-x 6 root root 131072 feb 8 2022 SERVER_Files
drwxr-xr-x 6 root root 131072 feb 9 2022 SERVER_Media
The only thing I have not done is what is indicated in this tutorial, but it talks about writing permission in an unprivileged LXC with the LXC user.
https://pve.proxmox.com/wiki/Unprivileged_LXC_containers
But apart from not understanding how it would be done, would it give me something? Since they would continue to be users other than root.
I would be grateful if you could help me, if only to tell me that what I want to do is either not possible or very complicated.
But I've been fighting with this for weeks without getting any progress.
Thanks
The last option is for everyone to use root access, and that would work.