Autor Tópico: Samba não inicia  (Lida 3767 vezes)

Offline thiagogcunha

  • Usuário Ubuntu
  • *
  • Mensagens: 1
    • Ver perfil
Samba não inicia
« Online: 18 de Outubro de 2016, 13:28 »
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(8)
  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

Offline zekkerj

  • Usuário Ubuntu
  • *
  • Mensagens: 19.735
  • Gratidão gera gratidão, lamúria atrai lamúria...
    • Ver perfil
    • Blog do Zekke
Re:Samba não inicia
« Resposta #1 Online: 20 de Outubro de 2016, 08:51 »
Coloque o seu smb.conf e use o comando "testparm" pra verificar a sintaxe.
Cole o resultado aqui pra gente te ajudar a analisar.

Enviado do meu smartphone.

Pesquise antes de perguntar, sua dúvida pode já ter sido respondida.
Não respondo dúvidas por MP, coloque sua dúvida no fórum onde ela pode ser pesquisada pelos seus colegas!
Não venha ao fórum apenas para perguntar. Se você sabe a resposta de um problema, porque não ajudar seu colega? ;D