无法从 Nautilus 连接到 Samba 共享

jmb*_*ard 15 nautilus samba networking

我有 Ubuntu 10.04,我想连接到 DLink DNS323 上的 Samba 共享。

从 Nautilus 中的“位置”->“网络”,我可以轻松导航到 DND323 并查看可用共享。当我选择无密码共享之一时,我可以按预期访问它。当我想连接到受密码保护的共享时,它不起作用。它所做的只是一次又一次地询问密码。

我尝试手动安装共享,它第一次与

sudo mount -t cifs -o username=user,password=pass //xxx.xxx.xxx.xxx/share ~/share
Run Code Online (Sandbox Code Playgroud)

知道为什么这在 Nautilus 中不起作用吗?

jmb*_*ard 6

我在这个ubuntuforums.org 线程中找到了一个简单的答案

默认情况下,较新版本的 samba 不再支持 DLink DNS323 使用的 LANMAN 身份验证方案。要纠正这个问题,唯一要做的就是:

编辑 /etc/samba/smb.conf

找到 [global] 部分,并插入以下行:

客户端 lanman auth = 是

您甚至不必重新启动,您就可以使用 Gnome Nautilus 挂载共享文件夹。

这也是连接到另一个 Lucid box 的 samba 共享(如果它们受密码保护)所必需的。很讽刺,不是吗?


All*_*lan 5

您可能受到此错误的影响

在错误的评论中提出了一些“修复”,我将在此处对其进行总结。


  • 您可以编辑 smb.conf

这是我们曾经用来解决此问题的方法。很容易尝试。

gksudo gedit /etc/samba/smb.conf
Run Code Online (Sandbox Code Playgroud)

在文件中找到此部分:

####### Authentication #######
# “security = user” is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba-HOWTO-Collection/ServerType.html
# in the samba-doc package for details.
#security = user
Run Code Online (Sandbox Code Playgroud)

取消对安全行的注释,并添加另一行使其看起来像这样:

####### Authentication #######
# “security = user” is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba-HOWTO-Collection/ServerType.html
# in the samba-doc package for details.
security = user
username map = /etc/samba/smbusers
Run Code Online (Sandbox Code Playgroud)

理查德·加文建议


  • 对 smb.conf 的另一个编辑

在名称解析顺序下面的全局部分中添加这些行

lanman auth = yes
client lanman auth = yes
client plaintext auth = yes
Run Code Online (Sandbox Code Playgroud)

James Pakko推荐


  • 最后,默认情况下未安装 nautilus-share 包,请确保已安装

这是由卡尔·克罗夫( Karl Kropf ) 提出的

今天我碰巧遇到了完全相同的问题 令人毛骨悚然 不知道您实际上可以通过被告知来捕获错误 0.o

安装 nautilus-share 的最后一个建议解决了我的问题,希望它也能为您做同样的事情。


小智 5

我的解决方案是:重新安装 gvfs :

 sudo apt-get  install gvfs-*
Run Code Online (Sandbox Code Playgroud)

停止鹦鹉螺:

 nautilus -q
Run Code Online (Sandbox Code Playgroud)

再次启动鹦鹉螺:

 nautilus
Run Code Online (Sandbox Code Playgroud)