ubuntu14.04 samba 安装配置无误报错如下

[2016/08/30 19:21:25.597839, 0] ../source3/nmbd/nmbd.c:58(terminate)
Got SIGTERM: going down...
[2016/08/30 19:23:29.813179, 0] ../source4/smbd/server.c:372(binary_smbd_main)
samba version 4.3.9-Ubuntu started.
Copyright Andrew Tridgell and the Samba Team 1992-2015
[2016/08/30 19:23:30.169291, 0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2016/08/30 19:23:30.438097, 0] ../source4/smbd/server.c:477(binary_smbd_main)
At this time the 'samba' binary should only be used for either:
'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'
You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
[2016/08/30 19:23:30.438240, 0] ../lib/util/become_daemon.c:111(exit_daemon)
STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
[2016/08/30 19:23:48.118889, 0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'nmbd' finished starting up and ready to serve connections
[2016/08/30 19:24:12.289130, 0] ../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)

网上没有有用信息,重启samba 没有反应。怀疑系统文件原因,

解决方法:sudo apt-get upgrade

sudo /etc/init.d/samba restart

结局是美好的,samba 启动成功

备注:smb 文件配置如下

[public2]
path = /home/public2/work
valid users = public2
writable = yes
; browseable = yes
[public3]
path = /home/public3/work
valid users = public3
writable = yes
; browseable = yes

 

posted on 2016-08-31 15:20  顺风旋子  阅读(4022)  评论(0编辑  收藏  举报