ubuntu14.04 Samba 共享文件無(wú)法訪問(wèn)問(wèn)題

按常規(guī)配置后,在windows訪問(wèn)ubuntu的共享文件,彈出
"無(wú)法訪問(wèn)。您可能沒(méi)有權(quán)限使用網(wǎng)絡(luò)資源,請(qǐng)與這臺(tái)服務(wù)器的管理員聯(lián)系以查明您是否有訪問(wèn)權(quán)限。指定的網(wǎng)絡(luò)名不再可用。"
最后分別查看 vim /var/log/samba/log.%m和log.sabd下的日志文件發(fā)現(xiàn):

[2017/05/06 21:29:27.121208, 0] ../lib/util/become_daemon.c:111(exit_daemon)
126 STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
127 [2017/05/06 21:42:06.930436, 0] ../source4/smbd/server.c:372(binary_smbd_main)
128 samba version 4.3.11-Ubuntu started.
129 Copyright Andrew Tridgell and the Samba Team 1992-2015
130 [2017/05/06 21:42:08.189548, 0] ../source4/smbd/server.c:477(binary_smbd_main)
131 At this time the 'samba' binary should only be used for either:
132 'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
133 You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
134 [2017/05/06 21:42:08.189591, 0] ../lib/util/become_daemon.c:111(exit_daemon)
135 STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
136 [2017/05/07 07:10:25.278602, 0] ../source4/smbd/server.c:372(binary_smbd_main)
137 samba version 4.3.11-Ubuntu started.
138 Copyright Andrew Tridgell and the Samba Team 1992-2015
139 [2017/05/07 07:10:25.863785, 0] ../source4/smbd/server.c:477(binary_smbd_main)
140 At this time the 'samba' binary should only be used for either:
141 'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
142 You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
143 [2017/05/07 07:10:25.863853, 0] ../lib/util/become_daemon.c:111(exit_daemon)
144 STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
145 [2017/05/07 15:42:29.689977, 0] ../source4/smbd/server.c:372(binary_smbd_main)

log.sabd:

20 STATUS=daemon 'smbd' finished starting up and ready to serve connections
21 [2017/05/06 19:12:58.510905, 0] ../lib/util/become_daemon.c:124(daemon_ready)
22 STATUS=daemon 'smbd' finished starting up and ready to serve connections
23 [2017/05/06 19:51:53.145590, 0] ../lib/util/become_daemon.c:124(daemon_ready)
24 STATUS=daemon 'smbd' finished starting up and ready to serve connections
25 [2017/05/06 20:16:27.777622, 0] ../lib/util/become_daemon.c:124(daemon_ready)
26 STATUS=daemon 'smbd' finished starting up and ready to serve connections
27 [2017/05/06 20:16:30.149027, 0] ../lib/util/become_daemon.c:124(daemon_ready)
28 STATUS=daemon 'smbd' finished starting up and ready to serve connections
29 [2017/05/06 21:25:34.463246, 0] ../lib/util/become_daemon.c:124(daemon_ready)
30 STATUS=daemon 'smbd' finished starting up and ready to serve connections
31 [2017/05/06 21:25:36.010419, 0] ../lib/util/become_daemon.c:124(daemon_ready)

通過(guò) sudo apt-get install libtalloc2 重新安裝后解決

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • Spring Cloud為開(kāi)發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見(jiàn)模式的工具(例如配置管理,服務(wù)發(fā)現(xiàn),斷路器,智...
    卡卡羅2017閱讀 136,554評(píng)論 19 139
  • 說(shuō)明本次redis集群安裝在rhel6.8 64位機(jī)器上,redis版本為3.2.8,redis的gem文件版本為...
    讀或?qū)?/span>閱讀 15,621評(píng)論 3 9
  • 你想要的生活是什么樣子。阿桑說(shuō)過(guò)一段話,看到什么就想起什么,想起什么就擁有什么,擁有什么就快樂(lè)什么。但是,我們終究...
    葉恩檸閱讀 290評(píng)論 1 0
  • 春 舞動(dòng)開(kāi)滿(mǎn)鮮花的裙裾 招招搖搖走向你 走向你眼睛深處 花海萬(wàn)畝香息如酒 醉忘歸路 夏 如火熾烈的情愫 孜孜渴求如...
    靈山閱讀 349評(píng)論 0 0
  • 1 五月 我把五月寫(xiě)進(jìn)時(shí)光里, 把你留在回憶里。 等你走進(jìn)六月, 我讓星星告訴你—— 你是夜空里的鉆石, 是我的心...
    零上九度閱讀 248評(píng)論 0 0

友情鏈接更多精彩內(nèi)容