主機版本: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.