LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 09-23-2003, 11:35 AM   #1
whitefor
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 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.
 
Old 09-23-2003, 12:37 PM   #2
whitefor
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
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
[root@boslinux init.d]# /usr/local/samba/bin/smbclient -L 192.168.1.80
added interface ip=192.168.1.80 bcast=192.168.1.255 nmask=255.255.255.0
Password:
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
--------- -------
MYHOME REDSOX


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


Reply


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 04:16 AM
CUPS problem! "localhost:631, connection refused"!!! robbow52 Debian 5 03-04-2009 02:27 PM
problem with "telnet localhost 110" nshoboul Linux - Newbie 1 12-04-2003 10:08 AM
ftp connection problem. It hangs on "entering passive mode" lynchmob09 Linux - Newbie 3 10-31-2003 12:09 PM
samba problems - "PORT 139" vwhk Linux - Networking 1 02-15-2002 05:23 AM


All times are GMT -5. The time now is 05:20 AM.

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