Olha gente!
Esto usando o ubuntu server já atualizado.
Apos instalar o samba e substituir o arquivo smb.conf por um já configurado, apresenta o erro abaixo;
[....] Starting nmbd (via systemctl): nmbd.serviceJob for nmbd.service failed because the control process exited with error code. See "systemctl status nmbd.service" and "journalctl -xe" for details.
failed!
Utilizando o comando "systemctl status nmbd.service" apresenta:● nmbd.service - LSB: start Samba NetBIOS nameserver (nmbd)
Loaded: loaded (/etc/init.d/nmbd; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Ter 2016-10-18 13:13:09 BRST; 4min 23s ago
Docs: man:systemd-sysv-generator(
Process: 1608 ExecStart=/etc/init.d/nmbd start (code=exited, status=1/FAILURE)
Out 18 13:13:08 ubuntu-srv systemd[1]: Starting LSB: start Samba NetBIOS nameserver (nmbd)...
Out 18 13:13:09 ubuntu-srv nmbd[1608]: * Starting NetBIOS name server nmbd
Out 18 13:13:09 ubuntu-srv nmbd[1608]: ...fail!
Out 18 13:13:09 ubuntu-srv systemd[1]: nmbd.service: Control process exited, code=exited status=1
Out 18 13:13:09 ubuntu-srv systemd[1]: Failed to start LSB: start Samba NetBIOS nameserver (nmbd).
Out 18 13:13:09 ubuntu-srv systemd[1]: nmbd.service: Unit entered failed state.
Out 18 13:13:09 ubuntu-srv systemd[1]: nmbd.service: Failed with result 'exit-code'.
Utilizando o comando"journalctl -xe" apresenta:-- Support:
http://lists.freedesktop.org/mailman/listinfo/systemd-devel--
-- A unidade systemd-tmpfiles-clean.service concluiu a inicialização.
--
-- The start-up result is done.
Out 18 13:24:19 ubuntu-srv systemd[1]: Starting LSB: start Samba NetBIOS nameserver (nmbd)...
-- Subject: Unidade nmbd.service sendo iniciado
-- Defined-By: systemd
-- Support:
http://lists.freedesktop.org/mailman/listinfo/systemd-devel--
-- A unidade nmbd.service está sendo iniciada.
Out 18 13:24:19 ubuntu-srv nmbd[1676]: * Starting NetBIOS name server nmbd
Out 18 13:24:19 ubuntu-srv nmbd[1676]: ...fail!
Out 18 13:24:19 ubuntu-srv systemd[1]: nmbd.service: Control process exited, code=exited status=1
Out 18 13:24:19 ubuntu-srv systemd[1]: Failed to start LSB: start Samba NetBIOS nameserver (nmbd).
-- Subject: A unidade nmbd.service falhou
-- Defined-By: systemd
-- Support:
http://lists.freedesktop.org/mailman/listinfo/systemd-devel--
-- A unidade nmbd.service falhou.
--
-- O resultado é failed.
Out 18 13:24:19 ubuntu-srv systemd[1]: nmbd.service: Unit entered failed state.
Out 18 13:24:19 ubuntu-srv systemd[1]: nmbd.service: Failed with result 'exit-code'.
PS: Quando utilizo o arquivo original do smb.conf não apresenta nenhum erro no stop e start do samba