Winfried
2017-Jun-18 09:53 UTC
[Samba] [4.2.14-Debian] Smbd not listening on 192.168.0.x on cold start
Hello, I noticed a problem when cold-starting a Debian host: smbd doesn't listen on 192.168.0.x. I need to restart it through the Initd script: Cold start: =======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 127.0.0.1:445 0.0.0.0:* LISTEN 720/smbd tcp 0 0 127.0.0.1:139 0.0.0.0:* LISTEN 720/smbd tcp6 0 0 ::1:445 :::* LISTEN 720/smbd tcp6 0 0 ::1:139 :::* LISTEN 720/smbd udp 0 0 192.168.0.255:137 0.0.0.0:* 710/nmbd udp 0 0 192.168.0.7:137 0.0.0.0:* 710/nmbd udp 0 0 0.0.0.0:137 0.0.0.0:* 710/nmbd udp 0 0 192.168.0.255:138 0.0.0.0:* 710/nmbd udp 0 0 192.168.0.7:138 0.0.0.0:* 710/nmbd udp 0 0 0.0.0.0:138 0.0.0.0:* 710/nmbd ======= Restart through Init script: =======root at debian:~# /etc/init.d/samba restart [ ok ] Restarting nmbd (via systemctl): nmbd.service. [ ok ] Restarting smbd (via systemctl): smbd.service. [ ok ] Restarting samba-ad-dc (via systemctl): samba-ad-dc.service. ======= Hot start =======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 192.168.0.7:445 0.0.0.0:* LISTEN 900/smbd tcp 0 0 127.0.0.1:445 0.0.0.0:* LISTEN 900/smbd tcp 0 0 192.168.0.7:139 0.0.0.0:* LISTEN 900/smbd tcp 0 0 127.0.0.1:139 0.0.0.0:* LISTEN 900/smbd tcp6 0 0 ::1:445 :::* LISTEN 900/smbd tcp6 0 0 ::1:139 :::* LISTEN 900/smbd udp 0 0 192.168.0.255:137 0.0.0.0:* 857/nmbd udp 0 0 192.168.0.7:137 0.0.0.0:* 857/nmbd udp 0 0 0.0.0.0:137 0.0.0.0:* 857/nmbd udp 0 0 192.168.0.255:138 0.0.0.0:* 857/nmbd udp 0 0 192.168.0.7:138 0.0.0.0:* 857/nmbd udp 0 0 0.0.0.0:138 0.0.0.0:* 857/nmbd ======= Any idea why? Thank you. -- View this message in context: http://samba.2283325.n4.nabble.com/4-2-14-Debian-Smbd-not-listening-on-192-168-0-x-on-cold-start-tp4720131.html Sent from the Samba - General mailing list archive at Nabble.com.
Winfried
2017-Jun-18 09:55 UTC
[Samba] [4.2.14-Debian] Smbd not listening on 192.168.0.x on cold start
Forgot to give the smb.conf: =========root at debian:~# cat /etc/samba/smb.conf [global] workgroup = WORKGROUP log level = 2 ;this avoids needless errors in the logs if you have no printer printcap name = /dev/null load printers = no printing = bsd security = user hosts allow = 127.0.0.1 192.168.0.0/24 hosts deny = 0.0.0.0/0 bind interfaces only = yes ;added to investigate issue with Net'hood interfaces = eth0 lo map to guest = bad user ;Remote Samba host acting as WINS server wins server = 192.168.0.15 ;Added to investigate issue "At this time the 'samba' binary should only be used for either" server services = +smb [write] path = /mydir guest ok = yes writeable=yes browseable=yes ========= -- View this message in context: http://samba.2283325.n4.nabble.com/4-2-14-Debian-Smbd-not-listening-on-192-168-0-x-on-cold-start-tp4720131p4720132.html Sent from the Samba - General mailing list archive at Nabble.com.
Rowland Penny
2017-Jun-18 11:06 UTC
[Samba] [4.2.14-Debian] Smbd not listening on 192.168.0.x on cold start
On Sun, 18 Jun 2017 02:55:22 -0700 (PDT) Winfried via samba <samba at lists.samba.org> wrote:> Forgot to give the smb.conf: >OK, it looks like you are trying to set up a standalone server with guest access, I suggest you read this wiki page: https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server You do not need most of the parameters you have added to smb.conf, you most definitely don't need this one: server services = +smb This should only be added to a smb.conf on a Samba AD DC and only then if you had been using the deprecated (and now no longer built by default) ntvfs code. You should also investigate why this is happening: [ ok ] Restarting samba-ad-dc (via systemctl): samba-ad-dc.service. This is probably being done by the 'samba' init script, but it shouldn't, it should be that the 'samba' init script starts the 'smbd' & 'nmbd' binaries or 'samba-ad-dc' starts the 'samba' binary. If your 'samba' init script tries to start all the binaries I have mentioned, I would class this as a bug. I would not worry about your samba standalone server not listening on '192.168.0.7' ports 139 & 445. The Unix domain member I am typing this on doesn't either and I have never noticed any problems. Rowland
Seemingly Similar Threads
- [4.2.14-Debian] Smbd not listening on 192.168.0.x on cold start
- 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
- [4.2.14-Debian] Smbd not listening on 192.168.0.x on cold start
- [4.2.14-Debian] Smbd not listening on 192.168.0.x on cold start