LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-06-2006, 10:25 AM   #1
RienParhan
LQ Newbie
 
Registered: Dec 2005
Location: Netherlands, Bussum
Distribution: Slackware 11
Posts: 14

Rep: Reputation: 0
smbd won't start


Hello,
I have a problem with Samba 3.0.2 on my newly installed
Slackware 10.2 server,

when i start smbd from shell nothing happens, i get no error messages and the logfile says that smbd is already running.
but when i use swat and check the status of the services nmbd and winbind are running but smbd is not,

i don't know what the problem is, i installed the software correctly and the rest all works fine

my other server (Slack 10.1) installed samba automatically and i never had this kind of problems before.

Has anyone encountered the same problems with slackware 10.2 + Samba?

please give advice,

Rien
 
Old 01-06-2006, 11:51 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Are you sure its not in your inetd.conf or xinetd.d/smbd setup to be started only when there's a request? (Not sure which Slackware uses - Debian uses inetd.conf but RH uses xinetd.d.)

Recently saw an issue on a server and found I couldn't start smbd even though there was an init script. On checking I found it was defined in inetd.conf so didn't need to be started manually.

Clarifying - daemons in inetd or xinetd only run while there is an active connection to them. You can try to kick off smbd if its defined in one of these simply by telneting to its port which would be viewed as a request for the service.

Last edited by MensaWater; 01-06-2006 at 12:01 PM.
 
Old 01-06-2006, 11:58 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
Check the smbd.log for errors.
 
Old 01-06-2006, 12:25 PM   #4
RienParhan
LQ Newbie
 
Registered: Dec 2005
Location: Netherlands, Bussum
Distribution: Slackware 11
Posts: 14

Original Poster
Rep: Reputation: 0
no its not in the config of inetd.conf
and the log file just says that smbd is started,
while swat says it isn't

in inetd there is a line about samba that says:
if you are running smbd /nmbd as deamons you shouldn't uncomment this line:
# netbios-ssn stream tcp nowait root /usr/bin/smbd smbd


Last edited by RienParhan; 01-06-2006 at 12:33 PM.
 
Old 01-06-2006, 12:40 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
Have you verified via ps or top that smbd is or isnt running?
What happens when you attempt to start smbd from the command line i.e.
smbd -D
 
Old 01-06-2006, 01:10 PM   #6
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by RienParhan
in inetd there is a line about samba that says:
if you are running smbd /nmbd as deamons you shouldn't uncomment this line:
# netbios-ssn stream tcp nowait root /usr/bin/smbd smbd
:
Just means you shouldn't run it both from inetd AND from an init script. Since the line is commented out you are correct that it is not running from inetd.
 
Old 01-06-2006, 01:57 PM   #7
RienParhan
LQ Newbie
 
Registered: Dec 2005
Location: Netherlands, Bussum
Distribution: Slackware 11
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk
Have you verified via ps or top that smbd is or isnt running?
What happens when you attempt to start smbd from the command line i.e.
smbd -D
nothing i don't get an error message or anything the log file says it's already started

it is in the top listing;
this is top output:
top - 21:08:56 up 4:02, 1 user, load average: 0.00, 0.00, 0.00
Mem: 319960k total, 66420k used, 253540k free, 8224k buffers
Swap: 1967952k total, 0k used, 1967952k free, 40372k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2188 root 9 0 2772 2772 2604 S 0.0 0.9 0:00.02 smbd

its there but its not working :S

Last edited by RienParhan; 01-06-2006 at 02:07 PM.
 
Old 01-06-2006, 05:43 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
Hmm... Try the following command
smbclient -L hostname (use the actual hostname)

Press enter when the password prompt is displayed. If successfull you should see some info and the browseable shares if any. This is a good sign that samba is working.
 
Old 01-09-2006, 03:54 AM   #9
RienParhan
LQ Newbie
 
Registered: Dec 2005
Location: Netherlands, Bussum
Distribution: Slackware 11
Posts: 14

Original Poster
Rep: Reputation: 0
I figured it out, when i used the automatic generated smb.conf it didn't work but after i copied smb-sample.conf to smb.conf and i did a killall on smbd and restarted it it suddenly worked, i still don't know what exactly the problem was but it is finally working.
anyway thanks for your help and advice
greetings Rien
 
Old 01-23-2006, 11:38 AM   #10
Aubrey-calm
LQ Newbie
 
Registered: Aug 2005
Distribution: Slackware
Posts: 7

Rep: Reputation: 0
smb.conf

I had the same problem, and I believe it has something to do with the following line in /etc/samba/smb.conf...

# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
# passdb backend = tdbsam <---------

In slackware 10.1, you uncommented this, and it appears that there is no need to uncomment it in 10.2. Leave it commented.


...though, there is probably some reason behind it being there, that may cause what I said above to be incorrect. I uncommented it, and smbd would not start. I commented it, and smbd would start. I am pretty new to all of this.

Last edited by Aubrey-calm; 01-23-2006 at 11:41 AM.
 
  


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
smbd jakublgz Linux - Networking 8 01-03-2011 01:52 AM
Where is smbd? gani *BSD 15 09-26-2004 10:08 PM
smbd at boot vs. xinetd start skippuff54 Linux - Networking 8 07-18-2004 05:15 PM
Samba Dameon smbd is not running and won't start rjcmi Linux - Newbie 2 04-22-2004 09:44 AM
smbd and nmbd artman62 Linux - Networking 3 06-27-2002 06:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:04 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