[SOLVED] Mount SMB/CIFS share to lxc with write permissions

vkoenig

New Member
Sep 2, 2024
2
0
1
Hello,

here's my situation:
I have a VM running Truenas Core which has some SMB shares with ACL configured
I want to mount one of these shares to my unprivileged Docker container, so i added it as storage in the Proxmox web ui and i can write to that share from the terminal of the node and from an external machine. I tried using a mount point to mount the directory (to which the share is mounted in Proxmox, Fig. 1) to a directory in the lxc, and I can read from it but not write to it (Fig. 2). When i do a ls -l (Fig. 3) in the Container it says that it is owned by nobody:nogroup. I'm not sure about UID/GID remapping because I couldn't find enough documentation so I'm stuck rn.

Thanks in advance

EDIT: phrasing
 

Attachments

  • Fig 1.png
    Fig 1.png
    4.5 KB · Views: 4
  • Fig 2.png
    Fig 2.png
    4.5 KB · Views: 4
  • Fig 3.png
    Fig 3.png
    2.5 KB · Views: 4
Last edited:
EDIT:
Problem solved. UID/GID remapping fixed the Problem. It didn't work originally because of a bug in the fstab file caused by mount.cifs and an incompatible version of smb/samba
 

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!