按常规配置后,在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'