Proxmox VE lxc容器中使用samba共享文件夹遇到mount error(1): Operation not permitted 的解决

问题描述:

        在PVE的LXC 容器中使用samba成功创建共享并使用, 用smbclient访问共享可以正常连接和使用,但是使用 mount.cifs 或者 mount.smb3时提示权限错误

mount error(1): Operation not permitted
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

 问题原因及解决:

        Proxmox VE lxc容器中使用samba共享文件夹遇到mount error(1): Operation not permitted 的解决_第1张图片

        默认当我们创建lxc容器时,都是无特权容器,将无特权的容器改为否(需要重新创建新的LXC,不能直接修改属性),问题得到解决。

参考文献:

Why do I get ”mount error(1): Operation not permitted“ on ”mount.cifs“ in a LXC container on a Proxmox VE machine

你可能感兴趣的:(proxmoxVE,linux,运维,服务器,pve)