Debian 10 container: cannot mount Samba share

Toxik

Active Member
Jul 11, 2019
54
7
28
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.
 

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!