首页 > 代码库 > ubuntu + samba 共享失败
ubuntu + samba 共享失败
主机版本:ubuntu14.04
问题描述:Samba服务配置后仍然不通。
samba服务这么成熟的东西,本以为在ubuntu上修改下smb.conf重启就得了,但是访问还是失败。
表现是,可以看到samba中配置的共享文件夹,但是却打不开,被告知
无法访问。您可能没有权限使用网络资源,请与这台服务器的管理员联系以查明您是否有访问权限。
指定的网络名不再可用。
最终通过 Samba的log, /var/log/samba/log.{计算机名} - 计算机名是你的windows主机名称
可以看到每次,访问出错时,都会产生大量的 err log
解决方案
I had this problem today after I installed samba-dbg to debug an issue. The whole thing just did not work and uninstalling samba-dbg did not fix the issue. What did fix the issue was running the following:
$ apt-get install --reinstall libsmbclient libsmbclient-dev libtevent0 libtalloc2
I think there was a miss match of shared libraries with either tevent or talloc. After reinstalling all the libraries all was fixed.
ubuntu + samba 共享失败