Samba problem - "telnet localhost 139" hangs
I am trying to get Samba running on our network (10 PCs with XP, 1 with Linux). I've installed the latest Samba version 2.2.8a.
I have been busting my brains for 3 days on this. Basically the XP machines see my linux PC when browsing in File Manager=>Entire Network=>Microsoft Windows Network. However when I double-click on the linux PC to access it's shared dir I get ....
"\\Boslinux is not accessible. You might not have permission to use
this network resource ... The network path is not found."
I've stepped through the Samba troubleshooting guide on samba.org Pinging machines from both sides (XP and Linux) works. Where I start to run into problems is when I try ....
$ echo "hello" | telnet localhost 139
This seems to just go out and hang at "Trying 127.0.0.1 ...." does not return with the expected (as detailed in the troubleshooting guide) ....
"Trying 192.168.236.86 ...
Connected to localhost. Escape character is '^]'.
Connection closed by foreign host."
=> both smbd and nmbd daemons are running when I use ps -aux
=> also when I run "$ netstat -a" I see as expected ...
tcp 0 0 *:netbios-ssn *:* LISTEN
udp 0 0 boslinux:netbios-ns *:*
udp 0 0 *:netbios-ns *:*
udp 0 0 boslinux:netbios-dgm *:*
udp 0 0 *:netbios-dgm *:*
and netbios-ssn is set to 139 in /etc/services
This is all as expected. I do notice something very funky with SWAT. The STATUS view takes a long time (30 sec) to return. It indicates nmbd as running BUT smbd shows as "not running" even though it is using ps -aux at a cmdtool.
I have no idea where to go next. I think the root of the problem is the difficulty I'm having using "telnet localhost 139". Also tried using smbclient which fails connection (see below)
[root@boslinux init.d]# /usr/local/samba/bin/smbclient -L localhost
added interface ip=192.168.1.80 bcast=192.168.1.255 nmask=255.255.255.0
timeout connecting to 127.0.0.1:139
Error connecting to 127.0.0.1 (Operation already in progress)
Connection to localhost failed
[root@boslinux init.d]# /usr/local/samba/bin/smbclient -L boslinux
added interface ip=192.168.1.80 bcast=192.168.1.255 nmask=255.255.255.0
timeout connecting to 192.168.1.80:139
Error connecting to 192.168.1.80 (Operation already in progress)
Connection to boslinux failed
Samba is obviously working to some degree (maybe just nmbd) since I can make changes to my smb.conf file (ie. change workgroup) and the XP machines will see it. I've included my smb.conf for additional info ....
# Global parameters
[global]
workgroup = MYHOME
netbios name = BOSLINUX
security = SHARE
encrypt passwords = Yes
guest account = guest
[test]
comment = For testing only, please
path = /tmp
read only = No
guest ok = Yes
BTW ... /tmp directory is 777 privs
Thanks so much in advance for any tips to try .... it is very frustrating.
|