[Samba] Broken samba

Bob Williams linux at barrowhillfarm.org.uk
Sat Sep 26 05:10:24 MDT 2009


On Saturday 26 September 2009 10:56:32 Bob Williams wrote:
> Hello Helmut,
> 
> On Saturday 26 September 2009 10:17:00 Helmut Hullen wrote:
> > Hallo, Bob,
> >
> > Du meintest am 26.09.09:
> > > barrowhillfarm:~ # testparm /etc/samba/smb.conf
> > >
> > > ERROR: lock directory file:///var/lib/samba does not exist
> > > ERROR: state directory file:///var/lib/samba does not exist
> > > ERROR: cache directory file:///var/lib/samba does not exist
> > > ERROR: pid directory file:///var/run/samba does not exist
> > >
> > >
> > > Why are those lock, state, cache and pid directory files missing? I
> > > can't believe I'm supposed to create them myself ;) The testparm
> > > command was run as root, so it can't be a permissions problem.
> >
> > What tells
> >
> >         ls -ld /var/lib/samba
> >         ls -ld /var/run/samba
> 
> barrowhillfarm:~ # ls -ld /var/lib/samba
> drwxr-xr-x 8 root root 4096 Sep 24 11:01 /var/lib/samba
> barrowhillfarm:~ # ls -ld /var/run/samba
> drwxr-xr-x 2 root root 4096 Sep 24 11:01 /var/run/samba
> barrowhillfarm:~ #
> 
> Thanks,
> 
> Bob
> 
Well, I've made some progress by commenting out the following two lines

[global]
; lock directory = file:///var/lib/samba
; pid directory = file:///var/lib/samba

so I can now restart both daemons:

barrowhillfarm:~ # rcnmb restart
Shutting down Samba NMB daemon  Warning: daemon not running.                          
done
Starting Samba NMB daemon                                                             
done
barrowhillfarm:~ # rcsmb restart
Shutting down Samba SMB daemon  Warning: daemon not running.                          
done
Starting Samba SMB daemon                                                             
done

but I still cannot add a user :( :

barrowhillfarm:~ # smbpasswd -a bob
Failed to open file:///etc/samba/secrets.tdb
Failed to open file:///etc/samba/secrets.tdb
PANIC (pid 27336): could not open secrets db
BACKTRACE: 6 stack frames:
 #0 smbpasswd(log_stack_trace+0x1a) [0x7f384121bcda]
 #1 smbpasswd(smb_panic+0x1f) [0x7f384121bdaf]
 #2 smbpasswd(get_global_sam_sid+0x52f) [0x7f384114bd8f]
 #3 smbpasswd(main+0x4fc) [0x7f38410ef5ec]
 #4 /lib64/libc.so.6(__libc_start_main+0xe6) [0x7f383e93a586]
 #5 smbpasswd [0x7f38410eec89]
Can not dump core: corepath not set up

Bob
-- 
Registered Linux User #463880		FSFE Member #1300
GPG-FP: A6C1 457C 6DBA B13E 5524 F703 D12A FB79 926B 994E
openSUSE 11.1, Kernel 2.6.27.25-0.1-default, KDE 4.3
Intel Core2 Quad Q9400 2.66GHz, 4GB DDR RAM, nVidia GeForce 9200GS


More information about the samba mailing list