LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   samba connecting to linux shares hangs (https://www.linuxquestions.org/questions/linux-software-2/samba-connecting-to-linux-shares-hangs-7592/)

jkahlich 10-16-2001 09:56 AM

samba connecting to linux shares hangs
 
I have a Red Hat 7.1 in a Windows NT Domain. I can access everything just fine. My problem is the initial connect it hangs for 10 to 30 seconds (somtimes timing out) then finally connects. I went through the diagnosis.txt at samba.org and found that I may have a problem with nmbd. The services is running just fine as is smbd but when I do nmblookup -B computername_samba_ it will not give me my machines IP. I think this is where my problem lies. Also when I do a netstat -a |grep 137 (looking to see if port 137 is out there) I get nothing back. So bottom line: Samba does work, It just hangs during the initial connection.

Thanks

drjimstuckinwin 10-16-2001 10:41 AM

Hello
Sounds like the same problem that I had. My win98 system hung whenever I tried to connect to samba, but the server showed up in Network Neighbourhood. The problems I blamed were...
1 Encrypted passwords. Had to put encrypt passwords = yes in smb.conf
2 Using wrong MS logon client
3 Having protocols other than TCP/IP on the windoze machine
4 Not having set up user accounts on the server properly, need a user account on the RH machine, and an account on samba. Username/PW have to be same as your windoze details. I had to create a new profile.
I used SWAT to change the samba related bits.
Jim

jkahlich 10-16-2001 11:29 AM

Thanks Jim for the reply.

I do have the 4 things you mentioned all ready done.

I think I have found something. In my /etc/hosts file I do not have the domain's WINS server listed. I will modify this later today when activity on the network slows down since I am going to stop and restart the networking services.

I will respond with the results.

jkahlich 10-17-2001 02:55 PM

Samba works
 
I went into my /etc/hosts and added the name and IP of my WINS server. Samba no longer hangs when connecting initially!


All times are GMT -5. The time now is 05:43 PM.