Debian 10 container: cannot mount Samba share

Toxik

Well-Known Member
Jul 11, 2019
61
7
48
Germany
Hi,
I've set up an Debian 10 container, installed cifs-utils and trying to mount a Samba share (from Synology NAS), which fails:
Bash:
mount --verbose -t cifs -o user=myuser,domain=mydomain,vers=3.0 //nas1.mydomain.local/Share /mnt/Share
Password for myuser@//nas1.mydomain.local/Share:  ***
mount.cifs kernel mount options: ip=192.168.1.10,unc=\\nas1.mydomain.local\Share,vers=3.0,user=mydomain,domain=mydomain,pass=********
mount error(1): Operation not permitted
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

I can do the same on the Proxmox host without problems. Also I can do the same on a Slackware PC without problems.

Is this problem related to containerization?
 
Hi, your container is probably unprivileged, it's that way by default since version 5.4

A possible example is here:
https://forum.proxmox.com/threads/cifs-or-nfs-mount-inside-unprivleged-container.58655/

But better is to read the documentation and decide and configure for your personal case, perhaps a VM is better and easier, depends.
https://pve.proxmox.com/wiki/Unprivileged_LXC_containers
https://pve.proxmox.com/wiki/Linux_Container#_bind_mount_points

Also take a look into the admin documentation inside your installation.