Bug 1932 - Crash of net getlocalsid
Summary: Crash of net getlocalsid
Status: CLOSED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: net utility (show other bugs)
Version: 3.0.7
Hardware: All Linux
: P3 enhancement
Target Milestone: none
Assignee: Jim McDonough
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-14 04:41 UTC by Lars Müller
Modified: 2005-08-24 10:16 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Müller 2004-10-14 04:41:06 UTC
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
Comment 1 Lars Müller 2004-10-14 04:42:12 UTC
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.
Comment 2 Jim McDonough 2004-11-15 10:33:08 UTC
Added call to secrets_init to check before we generate a sid.
Comment 3 Gerald (Jerry) Carter (dead mail address) 2005-08-24 10:16:11 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.