Because either you have samba running from xinetd or it isn't
  running at all. Here's the output of netstat -ntupl on my box:

[EMAIL PROTECTED] etc]# service smb status


smbd (pid 17966) is running...
16535 (pid ) is running...
nmbd (pid 16545) is running...
[EMAIL PROTECTED] etc]# service xinetd status


xinetd (pid 3027) is running...
[EMAIL PROTECTED] etc]# grep nmbd xinetd.d/*


[EMAIL PROTECTED] etc]# grep smbd xinetd.d/*

[EMAIL PROTECTED] etc]# netstat | grep smbd
[EMAIL PROTECTED] etc]# netstat -l | grep smb


[EMAIL PROTECTED] etc]# cat /etc/services | grep smb
[EMAIL PROTECTED] etc]# cat /etc/services | grep nmb


[EMAIL PROTECTED] etc]#

This would appear to not be the case.
1. smb and nmb are running.
2. They do not appear to be running from xnetd or something would have been mentioned in the /etc/xinetd.d/ directory so let me try the switches you suggest:


[EMAIL PROTECTED] etc]# netstat -ntupl | grep smbd
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 16535/smbd udp 0 0 127.0.0.1:33145 0.0.0.0:* 17966/smbd [EMAIL PROTECTED] etc]# netstat -ntupl | grep nmbd udp 0 0 208.152.4.207:137 0.0.0.0:* 16545/nmbd udp 0 0 192.168.1.253:137 0.0.0.0:* 16545/nmbd udp 0 0 0.0.0.0:137 0.0.0.0:* 16545/nmbd udp 0 0 208.152.4.207:138 0.0.0.0:* 16545/nmbd udp 0 0 192.168.1.253:138 0.0.0.0:* 16545/nmbd udp 0 0 0.0.0.0:138 0.0.0.0:* 16545/nmbd

OK great, but I wonder why I wasn't getting this before with just '-l'? It is this kind of apparent inconsistency that lead to my personal prejudice against netstat.


Now I've set "interfaces = 192.168.1.253/24" and "hosts allow = 192.168.1. 127." from within smb.conf and I am getting much better behaviour:

[EMAIL PROTECTED] samba]# netstat -ntupl | grep nmbd;netstat -ntupl | grep smbd udp 0 0 192.168.1.253:137 0.0.0.0:* 18385/nmbd udp 0 0 0.0.0.0:137 0.0.0.0:* 18385/nmbd udp 0 0 192.168.1.253:138 0.0.0.0:* 18385/nmbd udp 0 0 0.0.0.0:138 0.0.0.0:* 18385/nmbd tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 18375/smbd

Thanks. Although I can be a churlish lout when my systems and I are having a spat, I really do appreciate your assitance. ;-)




Jim C.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to