因此,我嘗試在CentOS 7上與Samba建立一個公共SMB共享。現在,我已經設置好了,而且我很頭疼。但是,甜蜜的勝利。我在這裏發佈這裏爲你們所有,這樣你就不需要浪費你的時間。這實際上很簡單,你只需要知道你需要跳過的籃球。我還會編輯Samba wiki。NT_STATUS_ACCESS_DENIED Samba共享中的錯誤
的第一個問題是,它會無法連接的地方,除了在本地:
Remote Connection (my Linux desktop):
-------
[[email protected] ~]# smbclient //sambaserver/PublicDocs -N
Error connecting to 192.168.100.97 (No route to host)
Connection to cgybkp01 failed (Error NT_STATUS_HOST_UNREACHABLE)
在Windows 8中,使用Windows資源管理器,輸入後「\\ sambaserver」到地址欄,進度條會等待,等待,然後超時。錯誤消息是:
Remote Connection (my Windows 8 desktop):
Windows cannot access \\sambaserver
Check the spelling of the name. Otherwise, there might be a problem with your network. To
try to identify and resolve network problems, click Diagnose.
這最終成爲一個問題與firewalld。要解鎖桑巴,我需要加入這一行/etc/firewalld/zones/public.xml:
<service name="samba"/>
完美,現在我可以連接!
但是,我實際上掛載了一個NFS共享,所以我有一個問題,與SELinux。現在,當我嘗試使用smbclient的連接...
smbclient //sambaserver/PublicDocs -N
我可以連接,但是當我嘗試LS,我得到的錯誤:「NT_STATUS_ACCESS_DENIED」在CentOS的7那麼,如何連接?