ubuntu14.04 Samba 共享文件无法访问问题

按常规配置后,在windows访问ubuntu的共享文件,弹出
"无法访问。您可能没有权限使用网络资源,请与这台服务器的管理员联系以查明您是否有访问权限。指定的网络名不再可用。"
最后分别查看 vim /var/log/samba/log.%m和log.sabd下的日志文件发现:

[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)

通过 sudo apt-get install libtalloc2 重新安装后解决

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 134,923评论 18 139
  • 说明本次redis集群安装在rhel6.8 64位机器上,redis版本为3.2.8,redis的gem文件版本为...
    读或写阅读 15,144评论 3 9
  • 你想要的生活是什么样子。阿桑说过一段话,看到什么就想起什么,想起什么就拥有什么,拥有什么就快乐什么。但是,我们终究...
    叶恩柠阅读 267评论 1 0
  • 春 舞动开满鲜花的裙裾 招招摇摇走向你 走向你眼睛深处 花海万亩香息如酒 醉忘归路 夏 如火炽烈的情愫 孜孜渴求如...
    灵山阅读 307评论 0 0
  • 1 五月 我把五月写进时光里, 把你留在回忆里。 等你走进六月, 我让星星告诉你—— 你是夜空里的钻石, 是我的心...
    零上九度阅读 236评论 0 0