Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-23-2003, 10:35 AM   #1
LQ Newbie
Registered: Sep 2003
Posts: 2

Rep: Reputation: 0
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 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 ...." does not return with the expected (as detailed in the troubleshooting guide) ....

"Trying ...
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= bcast= nmask=
timeout connecting to
Error connecting to (Operation already in progress)
Connection to localhost failed
[root@boslinux init.d]# /usr/local/samba/bin/smbclient -L boslinux
added interface ip= bcast= nmask=
timeout connecting to
Error connecting to (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
workgroup = MYHOME
netbios name = BOSLINUX
security = SHARE
encrypt passwords = Yes
guest account = guest

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.
Old 09-23-2003, 11:37 AM   #2
LQ Newbie
Registered: Sep 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Yaaa ! Looks like I stumbled on the solution. And the magic command was ...

/etc/rc.d/init.d/iptables stop

after that I got some positive testing results ....

[root@boslinux init.d]# echo "hello" | telnet localhost 139
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
[root@boslinux init.d]# /usr/local/samba/bin/smbclient -L
added interface ip= bcast= nmask=
Domain=[MYHOME] OS=[Unix] Server=[Samba 2.2.8a]

Sharename Type Comment
--------- ---- -------
test Disk For testing only, please
IPC$ IPC IPC Service (Samba 2.2.8a Server)
ADMIN$ Disk IPC Service (Samba 2.2.8a Server)

Server Comment
--------- -------
BOSLINUX Samba 2.2.8a Server
REDSOX Tom Whiteford

Workgroup Master
--------- -------

And ultimately the XP PCs can see and share files/directories


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why "bash-2.05b$" in Terminal instead of "username@localhost username" jayelitumbiolo Linux - General 9 10-04-2009 03:16 AM
CUPS problem! "localhost:631, connection refused"!!! robbow52 Debian 5 03-04-2009 01:27 PM
problem with "telnet localhost 110" nshoboul Linux - Newbie 1 12-04-2003 09:08 AM
ftp connection problem. It hangs on "entering passive mode" lynchmob09 Linux - Newbie 3 10-31-2003 11:09 AM
samba problems - "PORT 139" vwhk Linux - Networking 1 02-15-2002 04:23 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration