Samba com problema no Debian 9 - Failed to start Samba NMB Daemon

1. Samba com problema no Debian 9 - Failed to start Samba NMB Daemon

Perfil removido
removido

(usa Nenhuma)

Enviado em 26/06/2017 - 11:01h

apt install samba

Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
The following additional packages will be installed:
attr python-dnspython samba-dsdb-modules samba-vfs-modules tdb-tools
Pacotes sugeridos:
bind9 bind9utils ctdb ldb-tools ntp | chrony smbldap-tools winbind ufw
Os NOVOS pacotes a seguir serão instalados:
attr python-dnspython samba samba-dsdb-modules samba-vfs-modules tdb-tools
0 pacotes atualizados, 6 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
É preciso baixar 0 B/1.873 kB de arquivos.
Depois desta operação, 14,5 MB adicionais de espaço em disco serão usados.
Você quer continuar? [S/n] S
A seleccionar pacote anteriormente não seleccionado python-dnspython.
(Lendo banco de dados ... 194165 ficheiros e directórios actualmente instalados.)
A preparar para desempacotar .../0-python-dnspython_1.15.0-1_all.deb ...
A descompactar python-dnspython (1.15.0-1) ...
A seleccionar pacote anteriormente não seleccionado tdb-tools.
A preparar para desempacotar .../1-tdb-tools_1.3.11-2_i386.deb ...
A descompactar tdb-tools (1.3.11-2) ...
A seleccionar pacote anteriormente não seleccionado samba.
A preparar para desempacotar .../2-samba_2%3a4.5.8+dfsg-2_i386.deb ...
A descompactar samba (2:4.5.8+dfsg-2) ...
A seleccionar pacote anteriormente não seleccionado attr.
A preparar para desempacotar .../3-attr_1%3a2.4.47-2+b2_i386.deb ...
A descompactar attr (1:2.4.47-2+b2) ...
A seleccionar pacote anteriormente não seleccionado samba-dsdb-modules.
A preparar para desempacotar .../4-samba-dsdb-modules_2%3a4.5.8+dfsg-2_i386.deb ...
A descompactar samba-dsdb-modules (2:4.5.8+dfsg-2) ...
A seleccionar pacote anteriormente não seleccionado samba-vfs-modules.
A preparar para desempacotar .../5-samba-vfs-modules_2%3a4.5.8+dfsg-2_i386.deb ...
A descompactar samba-vfs-modules (2:4.5.8+dfsg-2) ...
Configurando python-dnspython (1.15.0-1) ...
Configurando samba-vfs-modules (2:4.5.8+dfsg-2) ...
A processar 'triggers' para libc-bin (2.24-11+deb9u1) ...
A processar 'triggers' para systemd (232-25) ...
Configurando tdb-tools (1.3.11-2) ...
update-alternatives: a usar /usr/bin/tdbbackup.tdbtools para disponibilizar /usr/bin/tdbbackup (tdbbackup) em modo auto
A processar 'triggers' para man-db (2.7.6.1-2) ...
Configurando samba (2:4.5.8+dfsg-2) ...
Samba is not being run as an AD Domain Controller, masking samba-ad-dc-service.
Please ignore the following error about deb-systemd-helper not finding samba-ad-dc-service.
Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service.
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service.
Job for nmbd.service failed because a timeout was exceeded.
See "systemctl status nmbd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nmbd, action "start" failed.
● nmbd.service - Samba NMB Daemon
Loaded: loaded (/lib/systemd/system/nmbd.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Mon 2017-06-26 10:53:13 -03; 13ms ago
Docs: man:nmbd(8)
man:samba(7)
man:smb.conf(5)
Process: 9222 ExecStart=/usr/sbin/nmbd $NMBDOPTIONS (code=killed, signal=TERM)
Main PID: 9222 (code=killed, signal=TERM)
Status: "nmbd: No local IPv4 non-loopback interfaces available, waiting for interface ..."

jun 26 10:51:43 k systemd[1]: Starting Samba NMB Daemon...
jun 26 10:53:13 k systemd[1]: nmbd.service: Start operation timed out. Terminating.
jun 26 10:53:13 k systemd[1]: Failed to start Samba NMB Daemon.
jun 26 10:53:13 k systemd[1]: nmbd.service: Unit entered failed state.
jun 26 10:53:13 k systemd[1]: nmbd.service: Failed with result 'timeout'.
dpkg: erro ao processar o pacote samba (--configure):
sub-processo script post-installation instalado retornou estado de saída de erro 1
Configurando samba-dsdb-modules (2:4.5.8+dfsg-2) ...
Configurando attr (1:2.4.47-2+b2) ...
A processar 'triggers' para libc-bin (2.24-11+deb9u1) ...
A processar 'triggers' para systemd (232-25) ...
Erros foram encontrados durante o processamento de:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)



/etc/init.d/samba restart
[....] Restarting nmbd (via systemctl): nmbd.serviceJob for nmbd.service failed because a timeout was exceeded.
See "systemctl status nmbd.service" and "journalctl -xe" for details.
failed!



systemctl status samba-ad-dc.service
● samba-ad-dc.service
Loaded: masked (/dev/null; bad)
Active: inactive (dead)


dpkg-reconfigure samba
/usr/sbin/dpkg-reconfigure: samba está quebrado ou não está completamente instalado



  


2. Re: Samba com problema no Debian 9 - Failed to start Samba NMB Daemon

Perfil removido
removido

(usa Nenhuma)

Enviado em 03/07/2017 - 21:25h

Servidor samba não instala no Debian 9.


# apt-get remove samba* --purge -y

# apt-get autoremove --purge -y

# apt-get install -f

# apt-get install -y samba


Starting Samba NMB Daemon...
nmbd.service: Supervising process 15336 which is not our child. We'll most likely not notice when it exits.
nmbd.service: Start operation timed out. Terminating.
nmbd.service: Killing process 15336 (nmbd) with signal SIGKILL.
Failed to start Samba NMB Daemon.
nmbd.service: Unit entered failed state.
nmbd.service: Failed with result 'timeout'.



systemctl enable samba-ad-dc

Synchronizing state of samba-ad-dc.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable samba-ad-dc
Failed to enable unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.


systemctl start samba-ad-dc

Failed to start samba-ad-dc.service: Unit samba-ad-dc.service is masked.


https://wiki.samba.org/index.php/Managing_the_Samba_AD_DC_Service_Using_Systemd


cat /etc/systemd/system/samba-ad-dc.service



3. Samba 4 e Debian 9

Carlos Andre Freire
andrefreire

(usa Linux Mint)

Enviado em 20/07/2017 - 17:44h

Primeiro Instale o Samba:

# apt -y install samba krb5-config winbind smbclient

Remova o arquivo de configuração do Samba:

# rm /etc/samba/smb.conf

Promova o novo Domínio:

# samba-tool domain provision --use-rfc2307 --interactive

Altere o krb5.conf pelo criado pelo Samba

# cp /var/lib/samba/private/krb5.conf /etc/

Pare os serviços do Samba que não devem estar rodando no DC

# systemctl stop smbd nmbd winbind

Desative estes serviços para que eles não iniciem no boot

# systemctl disable smbd nmbd winbind

Remove o script samba-ad-dc existente

# systemctl unmask samba-ad-dc

Inicie o Samba como DC

# systemctl start samba-ad-dc

Habilite o serviço para subir no Boot

# systemctl enable samba-ad-dc

Teste o status do Samba

# smbclient -L localhost -U%

Seu novo controlador de dominio está pronto com Samba 4 e Debian 9

Espero ter Ajudado






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts