[Samba] Upgraded > Samba no longer listening on 192.168.0.x
L.P.H. van Belle
belle at bazuin.nl
Wed May 17 11:06:25 UTC 2017
that init script is ok.
Try adding the following in your smb.conf
Add :
interfaces = 192.168.249.230 127.0.0.1
Or interfaces = eth0 lo
( change eth0 to your interface name)
Check:
systemctl status samba
systemctl status samba-ad-dc
If samba-ad-dc is enable, disable that one, and enable samba.
systemctl disable samba-ad-dc
systemctl enable samba
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> Winfried via samba
> Verzonden: woensdag 17 mei 2017 12:45
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] Upgraded > Samba no longer listening
> on 192.168.0.x
>
> Here goes:
>
> 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
> root at debian:~#
>
>
>
>
> --
> View this message in context:
> http://samba.2283325.n4.nabble.com/Upgraded-Samba-no-longer-li
stening-on-192-168-0-x-tp4718767p4718769.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