Hung Nguyen-Manager
2000-Oct-19 07:04 UTC
Help! bind failed on port 139 ... Address already in use
Hi all, I had samba installed with RedHat 6.2. When I made it running by updating inetd.conf, services, smb.conf as instructed in the man of smbd, smbd always failed to start up with the last message: bind failed on port 139. socket_addr=0.0.0.0 (Address already in use) I couldn't find out which address smbd referred to here Can someone help me with this Thanks a lot Hung Nguyen
Odhiambo Washington
2000-Oct-19 09:05 UTC
Help! bind failed on port 139 ... Address already in use
* Hung Nguyen-Manager <nhung@TMA.COM.VN> [20001019 10:12]: => =>Hi all, => =>I had samba installed with RedHat 6.2. When I made it running by =>updating inetd.conf, services, smb.conf as instructed in the man of =>smbd, smbd always failed to start up with the last message: => bind failed on port 139. socket_addr=0.0.0.0 (Address already in use) [snip] ...my /etc/inetd.conf # Enable the following two entries to enable samba startup from inetd # (from the Samba documentation). # #netbios-ssn stream tcp nowait root /usr/local/sbin/smbd smbd #netbios-ns dgram udp wait root /usr/local/sbin/nmbd nmbd . . [snip] See, I did not enable them. Run Samba from /rc.d or whatever it is called in Linux.... -Wash -- Odhiambo Washington Inter-Connect Ltd., wash@iconnect.co.ke 5th Flr Furaha Plaza Tel: 254 11 222604 Nkrumah Rd., Fax: 254 11 222636 PO Box 83613 MOMBASA, KENYA. If you can't describe something in three words or less then it's not worth it. -Alex Armstrong
Make sure you do not have any other daemons listening on port 137-139 check that by running "netstat -a" SMBD is saying that there is already an application running on the NetBIOS ports. Steve On Thu, 19 Oct 2000, Hung Nguyen-Manager wrote:> > Hi all, > > I had samba installed with RedHat 6.2. When I made it running by > updating inetd.conf, services, smb.conf as instructed in the man of > smbd, smbd always failed to start up with the last message: > bind failed on port 139. socket_addr=0.0.0.0 (Address already in use) > > I couldn't find out which address smbd referred to here > > Can someone help me with this > > Thanks a lot > > > Hung Nguyen > > > >
Hung Nguyen-Manager
2000-Oct-20 08:13 UTC
Help! bind failed on port 139 ... Address already in use
Thank you very much for your prompted reply All of you're right, my linux started smbd within rc.d already and I started the second one. Both failed I don't have lsof as Robert Dahlem suggested, neither know where to get I ran netstat -a and saw the port netbios_* has been on listening state (it's wierd that "ps -ef| grep smbd" gave no trace of a smbd running) and I looked into init.d, seeing smb there already so I must comment out the lines for netbios in /etc/inetd.conf and run /etc/rc.d/init.d/smb restart IT WORKS now, since I saw smbd -D and nmbd -D from the result of 'ps' BUT I still couldn't access to this server fs from my Windows 2000 Profession PC. I could browse the workgroup and saw the server. Clicking on it will give message: The account is not authorized to log in from this station However, another Win95 machine could access this server, after typing in the password for user account. The problem seems to be relating to the encrypted password of Win2000 I don't know whether we can do something at the linux machine, rather than updating the registry of my Win2000 to use Plain Password ? (Since using plain password seemed to compromise the security, isn't it?) I'm trying to find in the samba documents to see if there is a solution for this. Anyway, any quick help is appreciated, because I'm in hurry Thank you once more for your help Hung Nguyen