[Samba] Debian samba backport 4.4.5-3 starting problems, some info and fix.
L.P.H. van Belle
belle at bazuin.nl
Mon Oct 17 12:43:30 UTC 2016
I have had messages that there where starting problems with starting samba after reboot.
I've looked into this. This happens when you removed and reinstall samba.
First install always with as followed. ( samba 4 AD NEEDS WINBIND also! )
Samba 4 AD DC : apt-get install samba winbind
Samba 4 Member file server : apt-get install samba (and/or winbind )
Samba 4 Member print server : apt-get install samba (and/or winbind )
Samba 4 Member Proxy : apt-get install winbind ( if you dont need shares and only auth and/or kerberos key refreshing )
Samba 4 PDC : apt-get install samba winbind
And all depending on you needs offcourse.
If you already installed samba and now after reboot samba/winbind isnt starting.
Backup! :
/etc/samba
/var/lib/samba
/var/cache/samba
apt-get remove samba winbind --purge
now if you install again, you get a message:
Setting up samba-common (2:4.4.5+dfsg-3~bpo8+1) ...
Not replacing deleted config file /etc/samba/smb.conf
Install/upgrade will fail. To recover, please try:
sudo cp /usr/share/samba/smb.conf /etc/samba/smb.conf
sudo dpkg --configure -a
Setting up samba-common-bin (2:4.4.5+dfsg-3~bpo8+1) ...
and this one is easy overlooked.
now run :
sudo cp /usr/share/samba/smb.conf /etc/samba/smb.conf
sudo dpkg --configure -a
and reboot the server and check if nmbd/smbd (=samba) and/or winbind are running.
if your still in a setup phase of you network.
run :
apt-get remove samba winbind --purge
apt-get autoremove --purge
to clear up any errors and reinstall.
apt-get install samba winbind
Defaults in /etc/rc2.d/
ls -al /etc/rc2.d/
S01nmbd
S01samba-ad-dc
S02smbd
S02winbind
All init scripts here check if its needed to start or not.
And these are the systemctl defaults.
systemctl is-enabled samba-ad-dc
masked
systemctl is-enabled samba
masked
systemctl is-enabled nmbd
enabled
systemctl is-enabled smbd
enabled
systemctl is-enabled winbind
enabled
Greetz,
Louis
More information about the samba
mailing list