LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 02-09-2010, 08:12 AM   #1
Fredrix
LQ Newbie
 
Registered: Jan 2009
Location: Norway
Distribution: suse10, ubuntu
Posts: 13

Rep: Reputation: 0
Arrow SAMBA - Could not access PID file for smbd


hello, i have been trying to get this right.. but i cannot find the solution for myself

problem:
samba quit working after win7
I'm new-ish to linux(not using ubuntu tho, but servers)
i don't know what PID is..


i just installed a new ubuntu server of an old computer, for file sharing in workgroup with samba, and a little apache server running
webmin is also running, giving me an error when restarting samba


all worked very well untill i used win7 to access the \\server
this blog post have a fix for vista\7? connecting to samba, but wont fix my problem

after i connected to the share with win7 nothing seems to work


Quote:
# service samba status
* nmbd is running
* could not access PID file for smbd

and this:
# service samba start
* starting samba deamons [fail]
restart wont work, neither do reboot the server. I am clueless

some of my research is pointing me to /var/run/ and there is no smbd.pid there, not in any folder (nmbd.pid exist)

i cant figure this out my self, so any help would be appreciated
hitting f5 for this post and still googling around
..and sorry for my bad english





i found something
# service samba reload
* Reloading /etc/samba/smb.conf smbd only
No process in pidfile `/var/run/samba/smbd.pid' found running; none killed.
[ OK ]


i dont have any smbd.pid in the samba dir, should i create a new one.. and where do i get the PID -id that should be inside? if this helps =)





----------------
i did reformat the server, finding no sollution to this problem
since the prosess itself was missing it was a big screwup..
solved?

Last edited by Fredrix; 02-10-2010 at 10:39 AM. Reason: added log
 
Old 02-10-2010, 04:54 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
The PID is the process id and it's what ever number the process is running under if its running. The fact that you don't have a pid in the correct directory is probably indicative that it's not running (or failed to shutdown.)

You can verify this by typing:

ps uax | grep smb
kill -9 processid (if applicable)

It sounds unlikely that the process is starting up or alternately that your config is setup to put the pid in another directory.
 
Old 02-10-2010, 05:00 PM   #3
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 669

Rep: Reputation: 94
Quote:
Originally Posted by rweaver View Post
It sounds unlikely that the process is starting up or alternately that your config is setup to put the pid in another directory.
you can try finding it by this

Code:
find / | grep -i smbd.pid
 
Old 02-10-2010, 05:23 PM   #4
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 200Reputation: 200Reputation: 200
Quote:
< Yorokobi> I saw a great license plate frame and license plate today. The frame: What would Jesus do? The plate: JWRTFM
Now THAT'S funny!
 
Old 02-10-2010, 05:27 PM   #5
ozanbaba
Member
 
Registered: May 2003
Location: Tengiz
Distribution: Slackware64 14.1
Posts: 669

Rep: Reputation: 94
Quote:
Originally Posted by damgar View Post
Now THAT'S funny!
i agree with him, Jesus would read the freaking manual. (and probably can easily code in lisp).
 
  


Reply

Tags
samba


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
(20014)Internal error: Error retrieving pid file /var/run/apache2.pid yuri16 Linux - Server 0 07-28-2009 03:11 AM
reading pid from pid file in C language shifter Programming 1 05-14-2008 10:49 AM
SAMBA - Can't find smbd Irving Linux - Software 3 06-25-2004 03:32 PM
ERROR: Couldn't write pid to pid file lawrencegoodman Linux - Newbie 2 02-13-2004 08:05 PM
Samba - getting smbd started jchim32 Linux - Networking 4 05-29-2001 06:25 AM


All times are GMT -5. The time now is 11:29 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration