[Samba] Upgraded > Samba no longer listening on 192.168.0.x
Winfried
codecomplete at free.fr
Wed May 17 11:05:39 UTC 2017
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.
More information about the samba
mailing list