Nov 21

1. # cd /usr/local/samba/bin
2. # ./smbd -l /usr/local/samba/bin

This writes a log file. My log looked like:

Code:
[2006/10/19 21:56:40, 0] smbd/server.c:main(791)
smbd version 2.2.12 started.
Copyright Andrew Tridgell and the Samba Team 1992-2002
[2006/10/19 21:56:40, 0] smbd/server.c:main(835)
standard input is not a socket, assuming -D option
[2006/10/19 21:56:40, 0] tdb/tdbutil.c:tdb_log(531)
tdb(/usr/local/samba/private/secrets.tdb): tdb_oob len 1097098365 beyond eof at 8192
[2006/10/19 21:56:40, 0] passdb/machine_sid.c:pdb_generate_sam_sid(163)
pdb_generate_sam_sid: Failed to store generated machine SID.
[2006/10/19 21:56:40, 0] smbd/server.c:main(877)
ERROR: Samba cannot create a SAM SID.

3. Googling for Samba cannot create a SAM SID revealed stuff about SElinux. Not a lot of help.

4. Further googling found http://www.phptr.com/articles/article.asp?p=419048&rl=1 and I was able to work out that this error was to do with the possible hostname change and samba not updating it.

5. The file that should have been updated was
# /usr/local/samba/private/secrets.tdb
6. I moved the file and started samba again
# cd /etc/init.d/
# ./samba start
samba created a new file.
7. # cat secrets.tdb.old revealed a line with the old hostname it it.
8. checking the processes, smbd had started as it should and my connections worked again.

Found this solution on openFSG forum, tried it and it worked.

Print

Leave a Reply

Before you submit form:
Human test by Not Captcha