Jump to content

I'm invisible!


a13x
 Share

Recommended Posts

It seems I have to open another topic.

 

I'm invizible! Nobody in my network can see me. This is not quite strange for me because I know how to do this from Windows XP but in Linux I have no idea. I want to be visible again (in My Network Places & SMB4K). My PC is accessible if I type smb:///alex in Nautilus or \\alex in explorer (from another computer, of course). The problem seems to be related to NMB (though I don't know what that is) because it fails to stop when I restart/shutdown. I had no problems with NMB when I was visible :D

 

 

:help:

 

 

edit;

 

One more thing, when I give the samba status command I get this:

[root@Alex root]# samba status
smbd (pid 3083 3082) is running...
nmbd dead but pid file exists

 

I've done some more tests and it seems that nmbd is responsable for all the trouble. It won't do it's work.

Edited by a13x
Link to comment
Share on other sites

Be a little more verbose will you ?

 

What should I look for in /tmp ?

How can I kill it if I don't know it's PID ?

Are there some error logs that I should post to make things a little easier ?

 

 
[root@Alex root]# samba status 
smbd (pid 2189 2159) is running... 
nmbd dead but pid file exists 
[root@Alex root]# samba restart 
Shutting down SMB services:                                     [  OK  ] 
Shutting down NMB services:                                     [FAILED] 
Starting SMB services:                                                [  OK  ] 
Starting NMB services:                                                [  OK  ] 
[root@Alex root]# samba status 
smbd (pid 2941 2940) is running... 
nmbd dead but pid file exists 
[root@Alex root]# nmbd -d 
[root@Alex root]# nmbd sucks 
[root@Alex root]# nmbd sucks big time 
[root@Alex root]#

 

Apparently nmbd is 5 feet under :lol:

Edited by a13x
Link to comment
Share on other sites

Hey ! I remember I manualy modified etc/hosts. There were 3 entries:

 

localhost blablabla

192.168.1.17 Alex

192.168.100. ?? Alex (I don't remember what it was exactly).

 

I deleted the last one. If I remember right ...... my troubles appeared after this :unsure:.

 

Has this modification anything to do with my problem ?

Link to comment
Share on other sites

Hi Alex.

I was just looking into my /proc and reading your dilemma here.

I have nmbd with a PID 3871.

So I'm looking into /proc and I open /3871, there is a link to the exe, in here.

Maybe your nmbd got corrupted somehow ???

Maybe you could kill it there.

I kinda remember you were using Gnome (?)

I use KDE and found the PID, using KDE system guard.

I don't know what monitoring software Gnome uses.

I suppose you could delete the PID directory for nmdb, if you find it, and try restarting it.

 

Do a;

#ps -A

and hope that nmbd is listed.

Or, try;

# killall nmbd or #killall -HUP nmbd

 

I'm not proficient at this, but I like a good read :D

 

cheers.

Link to comment
Share on other sites

I have tried all of those commands but it doesn't work. I use GNOME and in GNOME System Monitor the nmbd process is not shown. Actually it appears to be stopped. But there is hope. This is nmbd's log (var/log/samba/log.nmbd)

 

 
[2004/10/23 17:40:23, 0] nmbd/nmbd.c:main(664) 
 Netbios nameserver version 3.0.7 started. 
 Copyright Andrew Tridgell and the Samba Team 1994-2004 
[2004/10/23 17:40:23, 0] nmbd/nmbd.c:main(683) 
 standard input is not a socket, assuming -D option 
[2004/10/23 17:40:23, 0] lib/util_sock.c:open_socket_in(708) 
 bind failed on port 137 socket_addr = 192.168.100.1. 
 Error = Cannot assign requested address 
[2004/10/23 17:40:23, 0] nmbd/nmbd_subnetdb.c:make_subnet(126) 
nmbd_subnetdb:make_subnet() 
 Failed to open nmb socket on interface 192.168.100.1 for port 137.  Error was Cannot assign requested address 
[2004/10/23 17:40:23, 0] nmbd/nmbd.c:main(732) 
 ERROR: Failed when creating subnet lists. Exiting.

 

This is the problem. The IP address, 192.168.100.1 is already taken. My normal IP address is 192.168.1.17. I wanted to have an IP address in that subnet so that's why I ended up with this.

Somehow nmbd is still trying to assign that IP. My question is: where is nmbd's configuration file located ? How can I prevent him from trying to take 192.168.100.1 ? All I want nmbd to do is assign my network name (Alex) to my IP (192.168.1.17).

Link to comment
Share on other sites

Hi Alex this problem is driving me nuts!

I can imagine how you're feeling :cheeky:

 

U used KDE networks or something I'm not familiar with for the SMB.config ?

Have you tried to reconfig smb.conf with SWAT or WEBMIN ?

I remember that there is an option to set the 'master browser'.

Did you set this to 192.168.100.1 IP manually?

Maybe set this to AUTO and let samba do its 'thing'.

I say 'thing' because, I assumed that when I set up samba with webmin or swat and set this to Auto, that this would default to my mandrake10.1 machine, where smbd and nmbd are running, BUT..........when I browse my network (2 WinXP-pro and 1 Mdk10.1) I see that one of my windows machines is set as "master without browse list"

I assume that this is where the list of machines/IP resolution is/should be, but I never set this up!

It just worked that way, and with no problems.

Have you set up your network's lmhosts files?

In winXP its under x:\windows\system32\drivers\etc

There will be a .sam (sample file) in there. The basics are all you may need.

I have 3 lines in my lmhosts. IP address (one space) computername

123.456.789 XP3200

 

This resolves the computers to an IP.

Done on all computers. (copy and pasted :D )

/etc/samba/lmhosts for Linux.

 

ps: I don't think there is a separate nmb config file, it works off smb.conf (not 100% sure)

Link to comment
Share on other sites

I was reading the info from SWAT,

 

"To shut down an nmbd process it is recommended that SIGKILL (-9) NOT be used, except as a last resort, as this may leave the name database in an inconsistent state. The correct way to terminate nmbd is to send it a SIGTERM (-15) signal and wait for it to die on its own.

 

 

 

 

nmbd will accept SIGHUP, which will cause it to dump out its namelists into the file namelist.debug in the /usr/local/samba/var/locks directory (or the var/locks directory configured under wherever Samba was configured to install itself). This will also cause nmbd to dump out its server database in the log.nmb file."

:o

 

edit: In my above post I mentioned that one of my winXP computers was set as the master browser by samba. That machine didn't have a lmhost file, I recently installed SP2 (?), and so I copied one from the other machine, placed in the appropriate dir, and presto LinNeighborhood is faster and the computer is no longer "commented" as 'master without browse list'.

Edited by arthurking
Link to comment
Share on other sites

Hi Alex this problem is driving me nuts!

I can imagine how you're feeling cheeky.gif

 

The agony has been here for about 4 days !!

 

U used KDE networks or something I'm not familiar with for the SMB.config ?

 

I use the KSambaplugin - a plugin for Konqueror.

 

Have you tried to reconfig smb.conf with SWAT or WEBMIN ?

 

Nope.

Did you set this to 192.168.100.1 IP manually?

 

No, I used The Gnome-System-Tools to do this and then removed it manually (I deleted this line -- 192.168.100.1 Alex -- from /etc/hosts.) I think this started all the problems.

 

The IP I am supposed to have is 192.168.1.17. The other one was an experiment ...... long story (2 networks with different IP classes). We don't use DHCP so why should I select AUTO ?

 

Have you set up your network's lmhosts files?

In winXP its under x:\windows\system32\drivers\etc

There will be a .sam (sample file) in there. The basics are all you may need.

I have 3 lines in my lmhosts. IP address (one space) computername

123.456.789 XP3200

 

I will try this .......

 

Thx for your support.

 

I can't continue working on this because another big phat problem appeared. X is a moron and refuses to start. I will google for help. If I don't find any, I'll open another topic. I can get back to solving the nmbd problem only after I get X working.

Link to comment
Share on other sites

If you don't use DHCP how did you lose your 192.168.100.1 IP?

I'd go over to that guy who stole it off you and boof him on the nose for causing you all this problem :furious3:

Seriously, I don't think DHCP is an issue here.

Like I said samba automatically chose a machine on my network to master browser.

What process was involved here :screwy:

I would have assumed the box running smbd/nmbd, but it chose a WinXP box (?)

As long as you set your IP's, (how did you?) on all the machines manually, and give all the machines and lmhosts file, I think it may work.

How to unset 192.168.100.1 as the nmbd server, manually, I couldn't tell.

But try to reconfigure samba with SWAT. lots of info in the help files.

 

good luck.

Link to comment
Share on other sites

Ok it seems I have to tell you the whole story. I am part of a switched LAN of about 14 PCs which uses this internal IP class: 192.168.1.*. Recently, I connected my LAN's switch with another one (using an UTP cable) belonging to another network that uses a different IP class: 192.168.100.*. The problem is that I can't see the computers from the other network nor they can see me. Not even pinging works.

 

In WinXP the situation is a little better. My normal IP is 192.168.1.17 so I added another one: 192.168.100.17. I'm still not able to see the computers from the other network but at least I can ping them.

 

Having these results in WinXP I decided to do the same thing in MDK. I added another IP, 192.168.100.1. It was a big mistake since 192.168.100.1 was already taken (it was a stealthed server - I didn't know then since it didn't respond to normal ping). Anyway, not wanting to use the Gnome-System-Tools again (because there is a bug in one of them that makes some bad changes to smb.conf) I modified the etc/hosts file myself (manually). This is what fueled all my problems with nmbd and X.

 

So now I have no nmbd and no X :( :unsure: => no Linux. So I'm stuck with Windows. :((

Link to comment
Share on other sites

I modified the lmhosts but it didn't have any effect.

After reconfiguring my connection settings and solving the X server problem I see that nmbd is trying to assign the right IP class (192.168.1.*) but not the right IP I think .....

Look:

 

[2004/10/24 17:50:12, 0] nmbd/nmbd.c:main(664)
 Netbios nameserver version 3.0.7 started.
 Copyright Andrew Tridgell and the Samba Team 1994-2004
[2004/10/24 17:50:12, 0] nmbd/nmbd.c:main(683)
 standard input is not a socket, assuming -D option
[2004/10/24 17:50:12, 0] lib/util_sock.c:open_socket_in(708)
 bind failed on port 137 socket_addr = 192.168.1.1.
 Error = Cannot assign requested address
[2004/10/24 17:50:12, 0] nmbd/nmbd_subnetdb.c:make_subnet(126)
nmbd_subnetdb:make_subnet()
 Failed to open nmb socket on interface 192.168.1.1 for port 137.  Error was Cannot assign requested address
[2004/10/24 17:50:12, 0] nmbd/nmbd.c:main(732)
 ERROR: Failed when creating subnet lists. Exiting.

 

Why it is trying to assign me the Network server's IP I dunno. I guess the only option here would be to totally uninstall Samba and then reinstall. If this doesn't work I'll have to reinstall MDK Linux .... *sigh*

Link to comment
Share on other sites

I got to go to work now, but don't uninstall samba, just rename the smb.conf file to something else (old_smb.conf) then make sure you got SWAT installed and use this to reconfigure samba.

maybe the easiest option now, and one that I've done a few times myself.

But I never had this problem with nmbd!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...