You are not logged in.

#1 2005-09-21 15:15:27

rbl
Member
Registered: 2005-08-29
Posts: 64

Samba won't start

Hi,

well, simple as that.. I followed the Wiki and also tried a Kanotix samba-config script mentioned in the bbs, still:

$ /etc/rc.d/samba start
:: Starting Samba Server                      [FAIL]

:?
It's not like I set up exotic stuff in /etc/samba/smb.conf, I just want 2 public shared directories, one r and one rw.
Thanks for any help..

Offline

#2 2005-09-21 16:40:09

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: Samba won't start

yes that's a problem. Use

/etc/rc.d/samba restart

instead. That should solve the problem. Probably a bug or something. Possibly you should run the above command twice if it fails the first time (that sometimes the case on my box)

Offline

#3 2005-09-21 19:07:07

rbl
Member
Registered: 2005-08-29
Posts: 64

Re: Samba won't start

no, it doesn't help. /etc/rc.d/samba restart fails no matter how often I run it sad

Offline

#4 2005-09-22 07:51:20

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: Samba won't start

can you post your output you get in your log files

/var/log/samba/log.smbd
/var/log/samba/log.nmbd

Offline

#5 2005-09-22 10:51:48

rbl
Member
Registered: 2005-08-29
Posts: 64

Re: Samba won't start

$ cat /var/log/samba/log.smbd 
cat: /var/log/samba/log.smbd: No such file or directory
$ cat /var/log/samba/log.nmbd 
[2005/09/21 21:05:18, 0] nmbd/nmbd.c:main(718)
  Netbios nameserver version 3.0.20 started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[2005/09/21 21:05:18, 0] param/loadparm.c:map_parameter(2536)
  Unknown parameter encountered: "character set"
[2005/09/21 21:05:18, 0] param/loadparm.c:lp_do_parameter(3277)
  Ignoring unknown parameter "character set"
[2005/09/21 22:37:01, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****
  
  Samba name server ASPIRIN is now a local master browser for workgroup LAN.KRONE on subnet 192.168.0.160
  
  *****
[2005/09/22 01:26:09, 0] nmbd/nmbd.c:terminate(58)
  Got SIGTERM: going down...
[2005/09/22 12:44:57, 0] nmbd/nmbd.c:main(718)
  Netbios nameserver version 3.0.20 started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[2005/09/22 12:44:57, 0] param/loadparm.c:map_parameter(2536)
  Unknown parameter encountered: "character set"
[2005/09/22 12:44:57, 0] param/loadparm.c:lp_do_parameter(3277)
  Ignoring unknown parameter "character set"

Offline

#6 2005-09-22 12:17:56

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: Samba won't start

That doesn't help much further. One thing though is that you can remove the line with the character set from smb.conf as apparently this option is not recognized.

I assume you're trying to start the samba deamon as root as indiciated in the wiki? If so, maybe posting your smb.conf file will help finding the problem (if there is a mistype it could be impossible for the samba deamon to start)

Offline

#7 2005-09-22 12:56:01

rbl
Member
Registered: 2005-08-29
Posts: 64

Re: Samba won't start

Thanks for your ongoing support so far, pressh big_smile
At the moment my smb.conf looks like this.. simple, huh?

$ cat /etc/samba/smb.conf
#Global Parameters
 workgroup = LAN.KRONE
 netbios name = aspirin
 encrypt passwords = yes

[shared]
 path=/data/shared
 browseable = yes
 read only = yes
 public = yes
 writable = no

Offline

#8 2005-09-22 13:46:32

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: Samba won't start

The official code for the global section should read

[global]

Don't think it makes any difference though.

Maybe the following command line commands give any usefull information (as root):

smbd -is
nmbd -is

Offline

#9 2005-09-22 21:03:33

rbl
Member
Registered: 2005-08-29
Posts: 64

Re: Samba won't start

yes, smbd -is gave some useful info! Here it is:

User nobody in passdb, but getpwnam() fails!

Yeah, nobody.. I userdel'ed that sucker 2 days ago because I wanted my lighttpd to run as user 'httpd'. So now I did a quick

useradd nobody

to get him back, and Samba is up and running!
Thanks a lot, pressh! big_smile  big_smile

Offline

#10 2005-09-22 23:36:33

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: Samba won't start

big_smile No problem

Offline

Board footer

Powered by FluxBB