mount smb share with specific uid and gid

lidoror

New Member
Oct 5, 2024
1
0
1
Hi everyone,

i created unprivileged container and I want to mount two folders to it I did it with mount points.

the problem is that I need that the folder will have permission of 1000:1000 and I cant seems to get it right.

after some searches and using this link

https://pve.proxmox.com/wiki/Unprivileged_LXC_containers

I was able to grant the root user the access to the right uid and gid but because the network shares are smb I need to add them to the proxmox pve with the correct ids I cant chown them.

how can I mount the smb shares to the proxmox pve with user and group of 1000 in normal linux I can add params in fstab file but here I am not sure how to do it.