LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   smbd won't start (https://www.linuxquestions.org/questions/linux-software-2/smbd-wont-start-400258/)

RienParhan 01-06-2006 10:25 AM

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 :confused:

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

MensaWater 01-06-2006 11:51 AM

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.

michaelk 01-06-2006 11:58 AM

Check the smbd.log for errors.

RienParhan 01-06-2006 12:25 PM

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

:confused:

michaelk 01-06-2006 12:40 PM

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

MensaWater 01-06-2006 01:10 PM

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.

RienParhan 01-06-2006 01:57 PM

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

michaelk 01-06-2006 05:43 PM

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.

RienParhan 01-09-2006 03:54 AM

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

Aubrey-calm 01-23-2006 11:38 AM

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.


All times are GMT -5. The time now is 01:20 AM.