lmuelle@gray:~> net getlocalsid [2004/10/14 13:41:15, 0] passdb/secrets.c:secrets_init(64) Failed to open /etc/samba/secrets.tdb [2004/10/14 13:41:15, 0] passdb/secrets.c:secrets_init(64) Failed to open /etc/samba/secrets.tdb [2004/10/14 13:41:15, 0] passdb/secrets.c:secrets_init(64) Failed to open /etc/samba/secrets.tdb [2004/10/14 13:41:15, 0] passdb/machine_sid.c:pdb_generate_sam_sid(176) pdb_generate_sam_sid: Failed to store generated machine SID. [2004/10/14 13:41:15, 0] lib/util.c:smb_panic2(1381) PANIC: Could not generate a machine SID [2004/10/14 13:41:15, 0] lib/util.c:smb_panic2(1389) BACKTRACE: 8 stack frames: #0 net(smb_panic2+0x1ec) [0x814c605] #1 net(smb_panic+0x25) [0x814c413] #2 net(get_global_sam_sid+0x38) [0x8097609] #3 net [0x806fd4d] #4 net(net_run_function+0x42) [0x806efc9] #5 net(main+0x349) [0x8070933] #6 /lib/tls/libc.so.6(__libc_start_main+0xe0) [0x40262b10] #7 net [0x806ee61] Aborted
We should add a check if net is called by root. I'm not sure if my time will permit to fix this in the next two weeks.
Added call to secrets_init to check before we generate a sid.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.