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.
 

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!