Winfried
2017-May-17 11:05 UTC
[Samba] Upgraded > Samba no longer listening on 192.168.0.x
Thank you. After adding "interfaces = eth0 lo" to smb.conf, I ran the following commands: ===============root at debian:~# systemctl status samba ● samba.service Loaded: masked (/dev/null) Active: inactive (dead) ===============root at debian:~# systemctl status samba-ad-dc ● samba-ad-dc.service - LSB: start Samba daemons for the AD DC Loaded: loaded (/etc/init.d/samba-ad-dc) Active: active (exited) since Wed 2017-05-17 12:25:44 CEST; 47min ago May 17 12:25:44 debian systemd[1]: Started LSB: start Samba daemons for the AD DC. ===============root at debian:~# systemctl disable samba-ad-dc Synchronizing state for samba-ad-dc.service with sysvinit using update-rc.d... Executing /usr/sbin/update-rc.d samba-ad-dc defaults insserv: warning: current start runlevel(s) (empty) of script `samba-ad-dc' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `samba-ad-dc' overrides LSB defaults (0 1 6). Executing /usr/sbin/update-rc.d samba-ad-dc disable insserv: warning: current start runlevel(s) (empty) of script `samba-ad-dc' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `samba-ad-dc' overrides LSB defaults (0 1 6). ===============root at debian:~# systemctl enable samba Synchronizing state for samba.service with sysvinit using update-rc.d... Executing /usr/sbin/update-rc.d samba defaults Executing /usr/sbin/update-rc.d samba enable update-rc.d: error: samba Default-Start contains no runlevels, aborting. ===============root at debian:~# systemctl enable nmbd.service smbd.service Synchronizing state for nmbd.service with sysvinit using update-rc.d... Executing /usr/sbin/update-rc.d nmbd defaults Executing /usr/sbin/update-rc.d nmbd enable Synchronizing state for smbd.service with sysvinit using update-rc.d... Executing /usr/sbin/update-rc.d smbd defaults Executing /usr/sbin/update-rc.d smbd enable =============== The Debian host is listed when I run "c:\>net view" in Windows: ===============root at debian:~# netstat -tunlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 390/sshd tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 1706/smbd tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 1706/smbd tcp6 0 0 :::22 :::* LISTEN 390/sshd tcp6 0 0 :::445 :::* LISTEN 1706/smbd tcp6 0 0 :::139 :::* LISTEN 1706/smbd udp 0 0 0.0.0.0:52216 0.0.0.0:* 741/dhclient udp 0 0 0.0.0.0:68 0.0.0.0:* 741/dhclient udp 0 0 192.168.0.255:137 0.0.0.0:* 1663/nmbd udp 0 0 192.168.0.7:137 0.0.0.0:* 1663/nmbd udp 0 0 0.0.0.0:137 0.0.0.0:* 1663/nmbd udp 0 0 192.168.0.255:138 0.0.0.0:* 1663/nmbd udp 0 0 192.168.0.7:138 0.0.0.0:* 1663/nmbd udp 0 0 0.0.0.0:138 0.0.0.0:* 1663/nmbd udp6 0 0 :::26459 :::* 741/dhclient =============== I'll report back tomorrow if the above solved the problem after the computer wakes up from suspend mode. Thank you. -- View this message in context: http://samba.2283325.n4.nabble.com/Upgraded-Samba-no-longer-listening-on-192-168-0-x-tp4718767p4718774.html Sent from the Samba - General mailing list archive at Nabble.com.
L.P.H. van Belle
2017-May-17 11:06 UTC
[Samba] Upgraded > Samba no longer listening on 192.168.0.x
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-listening-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 > >
Winfried
2017-May-18 09:47 UTC
[Samba] Upgraded > Samba no longer listening on 192.168.0.x
Problem solved: After waking up from suspend mode, the Debian host acting as home NAS is listed in Windows' Network Neighborhood. =======root at debian:~# netstat -tunlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 390/sshd tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 1706/smbd tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 1706/smbd tcp6 0 0 :::22 :::* LISTEN 390/sshd tcp6 0 0 :::445 :::* LISTEN 1706/smbd tcp6 0 0 :::139 :::* LISTEN 1706/smbd udp 0 0 0.0.0.0:52216 0.0.0.0:* 741/dhclient udp 0 0 0.0.0.0:68 0.0.0.0:* 741/dhclient udp 0 0 192.168.0.255:137 0.0.0.0:* 1663/nmbd udp 0 0 192.168.0.7:137 0.0.0.0:* 1663/nmbd udp 0 0 0.0.0.0:137 0.0.0.0:* 1663/nmbd udp 0 0 192.168.0.255:138 0.0.0.0:* 1663/nmbd udp 0 0 192.168.0.7:138 0.0.0.0:* 1663/nmbd udp 0 0 0.0.0.0:138 0.0.0.0:* 1663/nmbd udp6 0 0 :::26459 :::* 741/dhclient =======root at debian:~# ps aux | grep mbd root 1663 0.0 0.5 198628 5720 ? Ss May17 0:00 /usr/sbin/nmbd -D root 1706 0.0 1.4 283172 14200 ? Ss May17 0:00 /usr/sbin/smbd -D root 1719 0.0 0.6 283696 6548 ? S May17 0:00 /usr/sbin/smbd -D root 2372 0.0 0.2 12732 2292 pts/1 S+ 11:55 0:00 grep mbd =======c:\>net view Server Name Remark ------------------------------------------ \\DEBIAN Samba 4.2.14-Debian The command completed successfully. ======= Thank you all. -- View this message in context: http://samba.2283325.n4.nabble.com/Upgraded-Samba-no-longer-listening-on-192-168-0-x-tp4718767p4718808.html Sent from the Samba - General mailing list archive at Nabble.com.
Seemingly Similar Threads
- Upgraded > Samba no longer listening on 192.168.0.x
- [4.2.14-Debian] Smbd not listening on 192.168.0.x on cold start
- [3.6.6] nmbd reachable on 0.0.0.0: Safe?
- Question Wiki Setup a Samba Active Directory Domain Controller
- [3.6.6] nmbd reachable on 0.0.0.0: Safe?