Click to See Complete Forum and Search --> : Samba won't start..


FunkyBlueStick
10-06-2000, 01:44 PM
Help, I can't get samba to start and I haven't seen this problem come up in any docs. I do samba start at the command line and it says it starts ok but when I do samba status it says samba is stopped! I'm using mandrake 7.1 with kernel 2.2.15

Is it something I'm missing out of my config files or is just a bit dodgy?

Thanks

Craig McPherson
10-06-2000, 06:51 PM
Do this after you (supposedly) start Samba:

ps aux | grep smb
ps aux | grep nmb

Do you see smb and nmb running? If so, good. Are you using SWAT, and it's telling you they'er not running? Sometimes it lies. I stopped using it.

If you DON'T see them running, then check your log files right after trying to start up Samba, and see what errors there were. There are many differenet ways Samba can be configured to log, but look under /var/log/samba*.log, /var/log/smb*.log, and at everything in /var/log/samba.

FunkyBlueStick
10-07-2000, 10:39 AM
I did the ps aux | grep * bit and saw that samba was indeed running. I'm starting and stopping from the command line and using the samba status command. It was telling that it wasn't running.

Then I looked at my log files and this was the general theme running through.

This is what log.smb looks like:

[2000/10/07 01:52:05, 1] smbd/server.c:main(643)
smbd version 2.0.6 started.
Copyright Andrew Tridgell 1992-1998
[2000/10/07 01:52:06, 0] lib/util_sock.c http://www.linuxnewbie.org/ubb/redface.gifpen_socket_in(821)
Get_Hostbyname: Unknown host gw1


This is what log.nmb looks like:

[2000/10/07 01:52:05, 1] nmbd/nmbd.c:main(747)
Netbios nameserver version 2.0.6 started.
Copyright Andrew Tridgell 1994-1998
[2000/10/07 01:52:06, 0] lib/util_sock.c http://www.linuxnewbie.org/ubb/redface.gifpen_socket_in(821)
Get_Hostbyname: Unknown host gw1
[2000/10/07 01:52:07, 0] lib/util_sock.c http://www.linuxnewbie.org/ubb/redface.gifpen_socket_in(821)
Get_Hostbyname: Unknown host gw1

I'd kinda take a guess at it being something to do with the host name but I'm not sure quite what. If someone could enlighten?

Thanks

------------------
Yours with Peace and Love

Funky..

Craig McPherson
10-08-2000, 01:07 AM
Add gw1 to your /etc/hosts file.

Craig McPherson
10-08-2000, 01:09 AM
I assume gw1 is the name of your computer... if so, add this to /etc/hosts:

192.168.1.1 gw1 gw1

Assuming your IP address is 192.168.1.1

That should help!