1847856 Members
1883 Online
104021 Solutions
New Discussion

Re: Samba smbd error

 
Nick D'Angelo
Super Advisor

Samba smbd error

Hello,

For some reason, after I changed the ip address of my Unix server, the samba NFS share is no longer visible when I click on network Neighbourhood.

This is the error in the log.smbd file[2002/10/29 08:47:20, 0] lib/util_sock.c:open_socket_in(789)
bind failed on port 139 socket_addr = 0.0.0.0.
Error = Address already in use

I have tried to determine the problem using netstat -an, but to no avail.

Any suggestions?

Also, the machine has two NIC cards, ip address 60 and 61 on the end.

Thanks.

Always learning
16 REPLIES 16
John Palmer
Honored Contributor

Re: Samba smbd error

How did you change the IP address? Did you do a reboot? If you didn't, it sounds as thought there are some smbd processes still running, using the old address. You could try killing them.

Regards,
John
Nick D'Angelo
Super Advisor

Re: Samba smbd error

Sorry, Yes we did reboot.

I must also inform you that the shortcut that I previously had on my Desktop DOES work. I just can not see it when I browse the network.

Always learning
Nag Varma
Advisor

Re: Samba smbd error

As a quick thought..
did you try rebooting your PC..
thx
Nag
Nick D'Angelo
Super Advisor

Re: Samba smbd error

Nag V,

I rebooted my PC but no go.

Remember the error on my original posting about bind failing, was on the HPUX10.20 server.
Always learning
Govind
Frequent Advisor

Re: Samba smbd error

I forgot to add.. After you unregister and re-register, you might wnat to stop and start the smbd and nmbd daemons.
Govind
Dont try to fix something till it Aint Broke...Honesty is not always the best policy.....
Govind
Frequent Advisor

Re: Samba smbd error

You might want to try to unregister the samba server on the Primary Domain Controller and reregister it again. I had a similar issue once this fixed it.
Dont try to fix something till it Aint Broke...Honesty is not always the best policy.....
Nick D'Angelo
Super Advisor

Re: Samba smbd error

Ok, so then how do I un-register the samba server?
Always learning
Govind
Frequent Advisor

Re: Samba smbd error

When you made a unix server as a samba server you would have to get it registered on the Primary domain controller. We typically use the Server Manager Utility(which allows to add and remove hosts from the domain).Ofcourse you would have to loginto the Primary Domain Controller as a administrator to be able to do this. I have the binaries on my win2k Box its called Svrmgr.exe.
P.S. Look into you smb.conf file to see which domain you are on.
Dont try to fix something till it Aint Broke...Honesty is not always the best policy.....
Nick D'Angelo
Super Advisor

Re: Samba smbd error

G,

I have removed it and re-added it to the NT domain. however, the error is still present in the log.smbd file.

Most puzzling?

Nickd
Always learning
Darren Prior
Honored Contributor

Re: Samba smbd error

Hi Nick,

It sounds like nmbd is being started by inetd, and then the Samba startup script is trying to start it again. I suggest you check /etc/inetd.conf for the following lines:

netbios_ns stream tcp nowait root /opt/samba/bin/nmbd nmbd
netbios_ssn stream tcp nowait root /opt/samba/bin/smbd smbd

If they're present then comment them out (or delete them) and reread inetd.conf using inetd -c.

regards,

Darren.

Calm down. It's only ones and zeros...
Nick D'Angelo
Super Advisor

Re: Samba smbd error

Darren,

Thanks for tip, I will check that out shortly.

However, if I go to a command prompt on my WInblows computer and issue the command:

net view \\hostname

it comes back with an error 64

If I issue the command

net view \\ip address

Then it shows me the shares.

I suspect that there is a missing little piece somewhere that is preventing this server from showing up on the Winblows Domain.

Nickd
Always learning
U.SivaKumar_2
Honored Contributor

Re: Samba smbd error

Hi,
I don't think smbd will be running after it gives out bind failed on port 139 error.

To check that
#ps -ef | grep smbd | grep -v grep

Check /etc/inetd.conf for smbd entry.


regards,
U.SivaKumar


Innovations are made when conventions are broken
T G Manikandan
Honored Contributor

Re: Samba smbd error

Is nmbd running on the samba machine.
This should be running to make it visible on the Network Neighbourhood.

Also try doing a nslookup from the Windows machine.

I am not sure whether you have to append the domainname with the hostname because hpux does not support netbios naming.

C;\nslookup
or
C:\nslookup .

Thanks
Nick D'Angelo
Super Advisor

Re: Samba smbd error

All,

Making progress but in a strange way - I think.

I do an nslookup (on Winblows) and it returns correctly with the IP address for the Unix server.

I can see my shares if I type in:

net view \\servername

however I get a System error 5 if I type in:

net view \\ip address

I can map to the shares if I know what the share names are but I can not see it in the net neighborhood.


Always learning
Darren Prior
Honored Contributor

Re: Samba smbd error

Hi Nick,

Is a nmbd process running?

regards,

Darren.
Calm down. It's only ones and zeros...
Nick D'Angelo
Super Advisor

Re: Samba smbd error

Yes it is, I have restarted it many many times to make sure.
Always learning