LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-24-2004, 02:05 PM   #1
Zaius
Member
 
Registered: Jan 2004
Location: Canada
Posts: 68

Rep: Reputation: 15
nmbd dead but pid file exists


i type this command and get this:

/etc/rc.d/init.d/smb status
smbd (pid 3581) is running...
nmbd dead but pid file exists

needless to say my samba isn't working right.. why isn't nmbd starting back up again? could it be something that i changed in my smb.conf file?
 
Old 01-24-2004, 02:13 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 68
no it just means that it has died. Just stop smb, remvove the pid file the start it back up again
 
Old 01-24-2004, 03:29 PM   #3
Zaius
Member
 
Registered: Jan 2004
Location: Canada
Posts: 68

Original Poster
Rep: Reputation: 15
where is the .pid file? i have sm-client.pid.. is that it?
 
Old 01-24-2004, 04:16 PM   #4
Zaius
Member
 
Registered: Jan 2004
Location: Canada
Posts: 68

Original Poster
Rep: Reputation: 15
ok.. found the file.. it was in /var/run when smb was running.. and nmbd.pid is there when i stop it.. so i removed it as you said. when i start smb back up again nmbd fails to start.. so i stopped smb and removed the file again.. i now tried smb reload. and it says that smb.conf failed.. is there something wrong with my smb.conf file? i don't think i've done anything 'extreme' to it.
 
Old 01-25-2004, 07:46 AM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 68
Are there any odd entries in your samba logs?

Perhaps you could post a copy of your smb.conf file.

Running "testparm" should check your smb.conf file for errors.
 
Old 01-25-2004, 10:15 AM   #6
Zaius
Member
 
Registered: Jan 2004
Location: Canada
Posts: 68

Original Poster
Rep: Reputation: 15
this is what my testparm comes up with:

[root@Linux samba]# /usr/bin/testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[files]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
workgroup = MSHOME
server string = Linux
interfaces = 192.168.0.1/24, 192.168.2.1/24
security = SHARE
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
wins server = 192.168.0.1
hosts allow = 192.168.0., 127.0.0.1

[files]
comment = Stuff
path = /home/james
read only = yes
guest ok = yes


i've looked through the nmbd.logs and it seems like it keeps looking for a domain master.. and then assigning itself to being master.. i could post up what my smb.conf says.. but i think the above says it all. if not i'll post the uncommented parts of it.

i can see winxp fine for the first few minutes when i first start up but then it goes away. on linux it can't see linux.. and winxp can't see linux either.. i assume that's what nmbd controls.
 
Old 01-25-2004, 07:48 PM   #7
Zaius
Member
 
Registered: Jan 2004
Location: Canada
Posts: 68

Original Poster
Rep: Reputation: 15
ok fixed it for the most part.. there are still a few "funny things"

[root@Linux samba]# /usr/bin/testparm
Load smb config files from /etc/samba/smb.conf
params.c:Parameter() - Ignoring badly formed line in configuration file: Un-comment the following to provide a specific roving profile share
params.c:Parameter() - Ignoring badly formed line in configuration file: the default is to use the user's home directory
Processing section "[webpage]"
Processing section "[files]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
workgroup = MSHOME
server string = Linux
interfaces = 192.168.0.1/24, 192.168.2.103/24
security = SHARE
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = Yes
domain master = Yes
dns proxy = No
wins server = 192.168.0.1
hosts allow = 192.168.0.2, 127.0.0.1

i don't like those 'Ignoring badly formed line' bits.. not sure what they have a problem with..

i made linux to be a perferred master and doman master and changed interfaces 192.168.2.1 to 192.168.2.103 which is actually the right one.. so i think that cured somethings.

also briefly i had access to every that's on the router from winxp. which is weird as winxp is connected to linux.. linux to router.. router to everyone else.. and i didn't allow samba's need TCP and UDP's on the router.. but if i could do that again and keep it.. that would be awesome.

the last thing now is. i can't see winxp from linux.. no a big deal as i can do and see everything from winxp anyhow. but it would be nice.

thanks for the help so far!
 
Old 01-26-2004, 01:08 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 68
How did you edit the config file? perhaps it has a few DOS EOL characters.

What happens when you try to mount an XP share in linux? Do you get a specific error?
 
Old 01-26-2004, 02:45 PM   #9
Zaius
Member
 
Registered: Jan 2004
Location: Canada
Posts: 68

Original Poster
Rep: Reputation: 15
more things cleared up.. and linux is listed once again on both winxp and linux..

i just use the 'network services' on fedora's "start" menu to find what networks are available.. who do i mount a networked drive? it would save me some time if i were to have a direct link to it on my desktop ..

i think everythign else is under control now..
 
  


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
ntpd dead but pid file exists wjn Linux - Networking 15 05-22-2005 12:32 PM
crond dead but pid file exists ryedunn Linux - General 0 01-27-2005 10:23 AM
xinetd dead but pid file exists pas Linux - Newbie 2 01-21-2005 03:52 PM
nmbd dead but pid file exists mammajamma101 Linux - Newbie 2 01-14-2005 09:16 AM
Xinetd dead --xinetd dead but pid file exists hillxy Linux - General 1 04-15-2004 02:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:25 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
Open Source Consulting | Domain Registration