net sam list groups causes a segmentation fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: samba-common
When I run "net sam list groups" with a non root account I get a segmentation fault. I'm not certain if this is expected behaviour, though I imagine not.
On Ubuntu 8.10 (samba-common 2:3.2.3-
$ net sam list groups
You are not root, most things won't work
[2009/04/15 10:54:28, 0] passdb/
Failed to open /var/lib/
[2009/04/15 10:54:28, 0] lib/util.
PANIC (pid 11532): could not open secrets db
[2009/04/15 10:54:28, 0] lib/util.
BACKTRACE: 14 stack frames:
#0 net(log_
#1 net(smb_panic+0x80) [0xb7df0689]
#2 net(get_
#3 net [0xb7d9bca1]
#4 net(pdb_
#5 net [0xb7cedf81]
#6 net(net_
#7 net [0xb7ceb203]
#8 net(net_
#9 net(net_sam+0x79) [0xb7ceae39]
#10 net(net_
#11 net(main+0x800) [0xb7cba736]
#12 /lib/tls/
#13 net [0xb7cb8051]
[2009/04/15 10:54:28, 0] lib/util.
smb_panic(): calling panic action [/usr/share/
[2009/04/15 10:54:29, 0] lib/util.
smb_panic(): action returned status 0
Segmentation fault
On Ubuntu 9.04 (samba-common 2:3.3.2-1ubuntu3)
$ net sam list groups
You are not root, most things won't work
[2009/04/15 11:06:22, 0] passdb/
Failed to open /var/lib/
[2009/04/15 11:06:22, 0] lib/util.
PANIC (pid 4396): could not open secrets db
[2009/04/15 11:06:22, 0] lib/util.
BACKTRACE: 14 stack frames:
#0 net(log_
#1 net(smb_panic+0x5b) [0x7fa90e95952b]
#2 net(get_
#3 net [0x7fa90e90e362]
#4 net(pdb_
#5 net [0x7fa90e8312f7]
#6 net(net_
#7 net [0x7fa90e82e8df]
#8 net(net_
#9 net(net_sam+0x6b) [0x7fa90e82e7cb]
#10 net(net_
#11 net(main+0x898) [0x7fa90e8096c8]
#12 /lib/libc.
#13 net [0x7fa90e808d49]
[2009/04/15 11:06:22, 0] lib/util.
smb_panic(): calling panic action [/usr/share/
[2009/04/15 11:06:22, 0] lib/util.
smb_panic(): action returned status 0
[2009/04/15 11:06:22, 0] lib/fault.
Can not dump core: corepath not set up
In Jaunty it doesn't segfault anymore, it just fails miserably. I'm closing this as "Fix Released" in the development release.
However, I agree that the "most things won't work" message is an understatement, and that PANIC/BACKTRACE messages are not exactly the best way to handle some very common user error. Feel free to reopen this bug (and edit Title/Description) if you think *that* should get fixed as well. Ideally that should be submitted as an upstream bug directly.