[Samba] [4.2.14-Debian] Smbd not listening on 192.168.0.x on cold start

L.P.H. van Belle belle at bazuin.nl
Mon Jun 19 10:15:03 UTC 2017


Hai, 

There is nothing wrong with the debian script.

If it does not work, ( like this one ), failing to start at boot time. 
The make the change i suggested, one of these 2 wil fix it. 
There are few know things, these involve these settings. 

    interfaces = 192.168.0.1 127.0.0.1
Or 
    interfaces = eth0 lo
and
    bind interfaces only = yes

1) smb.conf: use "bind interfaces only", 
	but no interfaces defined in smb.conf, samba may fail to start at boot time.
	restart always works. 
2) smb.conf: "use interfaces = eth0 lo"
	samba may fail to start at boot time, fix, use ipnumbers.
	restart always works. 

3) which works always correct, so samba starts at boot time. 
bind interfaces only = yes
interfaces = 192.168.0.1 127.0.0.1


Greetz, 

Louis

 

> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens 
> Winfried via samba
> Verzonden: maandag 19 juni 2017 11:42
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] [4.2.14-Debian] Smbd not listening on 
> 192.168.0.x on cold start
> 
> Thanks for the infos.
> 
> I'm running 4.2.14. I always use apt-get to install/upgrade 
> packages, so the init script comes standard from the official 
> repository:
> 
> ===============
> root at debian:~# cat /etc/init.d/samba
> #!/bin/sh
> 
> ### BEGIN INIT INFO
> # Provides:          samba
> # Required-Start:
> # Required-Stop:
> # Default-Start:
> # Default-Stop:
> # Short-Description: ensure Samba daemons are started (nmbd 
> and smbd) ### END INIT INFO
> 
> set -e
> 
> # start nmbd, smbd and samba-ad-dc unconditionally # the init 
> scripts themselves check if they are needed or not case $1 in
>         start)
>                 /etc/init.d/nmbd start
>                 /etc/init.d/smbd start
>                 /etc/init.d/samba-ad-dc start
>                 ;;
>         stop)
>                 /etc/init.d/samba-ad-dc stop
>                 /etc/init.d/smbd stop
>                 /etc/init.d/nmbd stop
>                 ;;
>         reload)
>                 /etc/init.d/smbd reload
>                 ;;
>         restart|force-reload)
>                 /etc/init.d/nmbd "$1"
>                 /etc/init.d/smbd "$1"
>                 /etc/init.d/samba-ad-dc "$1"
>                 ;;
>         status)
>                 status=0
>                 NMBD_DISABLED=`testparm -s 
> --parameter-name='disable netbios' 2>/dev/null || true`
>                 SERVER_ROLE=`samba-tool testparm 
> --parameter-name="server role"  2>/dev/null | tail -1 || true`
>                 if [ "$SERVER_ROLE" != "active directory 
> domain controller"
> ]; then
>                         if [ "$NMBD_DISABLED" != "Yes" ]; then
>                                 /etc/init.d/nmbd status || status=$?
>                         fi
>                         /etc/init.d/smbd status || status=$?
>                 else
>                         /etc/init.d/samba-ad-dc status || status=$?
>                 fi
>                 exit $status
>                 ;;
>         *)
>                 echo "Usage: /etc/init.d/samba 
> {start|stop|reload|restart|force-reload|status}"
>                 exit 1
>                 ;;
> esac
> ===============
> 
> Should I just comment out the "/etc/init.d/samba-ad-dc" lines 
> in start/stop, or should I also edit smb.conf to edit the 
> "interface" command?
> 
> 
> 
> --
> View this message in context: 
> http://samba.2283325.n4.nabble.com/4-2-14-Debian-Smbd-not-list
ening-on-192-168-0-x-on-cold-start-tp4720131p4720150.html
> Sent from the Samba - General mailing list archive at Nabble.com.
> 
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
> 




More information about the samba mailing list