[Samba] systemd - error on start: You should start smbd/nmbd/winbindd for domain member & standalone

David C. Rankin drankinatty at suddenlinkmail.com
Fri Jan 10 17:40:42 MST 2014


All,

  Looking at logs for 4.1.3 on my standalone server (Archlinux w/systemd), I get
an error launching samba with 'systemctl start samba.service' telling me I
should start all individual daemons instead (nmbd/smbd/winbindd) of using
samba.service:

Jan 07 22:25:07 phoinix systemd[1]: Starting Samba AD Daemon...
Jan 07 22:25:07 phoinix samba[29948]: [2014/01/07 22:25:07.734014,  0]
../source4/smbd/server.c:370(binary_smbd_main)
Jan 07 22:25:07 phoinix samba[29948]: samba version 4.1.3 started.
Jan 07 22:25:07 phoinix samba[29948]: Copyright Andrew Tridgell and the Samba
Team 1992-2013
Jan 07 22:25:07 phoinix systemd[1]: Started Samba AD Daemon.
Jan 07 22:25:07 phoinix samba[29950]: [2014/01/07 22:25:07.784527,  0]
../source4/smbd/server.c:478(binary_smbd_main)
Jan 07 22:25:07 phoinix samba[29950]: At this time the 'samba' binary should
only be used for either:
Jan 07 22:25:07 phoinix samba[29950]: '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'
Jan 07 22:25:07 phoinix samba[29950]: You should start smbd/nmbd/winbindd
instead for domain member and standalone file server tasks
Jan 07 22:25:07 phoinix systemd[1]: samba.service: main process exited,
code=exited, status=1/FAILURE
Jan 07 22:25:07 phoinix systemd[1]: Unit samba.service entered failed state.

  Why should this make any difference? If it does, what difference does it make?

  I have a small office with less that 12 client machines and don't care about
single-sign-on. So I have always run samba by starting 'samba' if the distro
provided a 'samba' init, or by just starting the daemons individually. I don't
mind doing it either way, but I do mind not understanding why systemd should
care. So what is the correct way to start samba here and why isn't systemd smart
enough to know how to properly start samba with samba.service in a
standalone/workgroup setting?



-- 
David C. Rankin, J.D.,P.E.


More information about the samba mailing list