我最近在我的电脑上安装了Debian Squeeze,从那以后,我无法安装任何Samba共享,远程或本地(在本地主机上运行Samba服务器)。 我得到的错误(作为根)是:
cmd > ~: mount -t cifs //awakening/library4 /mnt/local1/ -o guest mount error(1): Operation not permitted Refer to the mount.cifs(8) manual page (eg man mount.cifs)
我可以尝试挂载一些随机共享(这不存在),并得到相同的错误,所以它甚至不检查共享是否存在于远程端。 当我安装了Debian Lenny时,同样的份额也起作用了。
问题是什么?
zless /usr/share/doc/cifs-utils/NEWS.Debian.gz
cifs-utils (2:4.0-1) unstable; urgency=low * As of this version, the mount.cifs binary is no longer setuid due to upstream concerns about the audit status of this code. As a consequence, users will no longer be able to run mount.cifs directly to mount shares unless mount points have been individually configured in /etc/fstab with the "user" mount option.
看起来像一个权限错误给我,这将解释为什么它抛出相同的错误,无论共享是否存在:它永远不会通过身份validation。
你的机器是在域上吗?
你可能需要在sudo中包装这个mount命令。 我不认为它会让你以普通用户的身份挂载samba共享,只能作为root用户。