Comment 18 for bug 50385

Revision history for this message
Alexandre Maciel (amaciel81) wrote : Re: samba can't be launched by a normal user (qemu related)

Hi,

I tried QEMU with Feisty and I have a similar problem, but I can't run smbd even if I run qemu as root. Using strace, I can see that qemu creates a dir called /tmp/qemu-pidnumber and create a smb.conf file inside it, but doesn't run smbd.

When I try run smbd manually (as non-root user) I got this following message:

amaciel@bahamut:/tmp/qemu-smb.5314$ smbd -i -s smb.conf
smbd version 3.0.24 started.
Copyright Andrew Tridgell and the Samba Team 1992-2006
file_init: Information only: requested 10000 open files, 1004 are available.
Failed to open /var/lib/samba/secrets.tdb
===============================================================
INTERNAL ERROR: Signal 11 in pid 5439 (3.0.24)
Please read the Trouble-Shooting section of the Samba3-HOWTO

From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
===============================================================
PANIC (pid 5439): internal error
BACKTRACE: 10 stack frames:
 #0 smbd(log_stack_trace+0x22) [0x823e0b2]
 #1 smbd(smb_panic+0x43) [0x823e193]
 #2 smbd [0x822c2ca]
 #3 [0xffffe420]
 #4 /lib/tls/i686/cmov/libc.so.6(vsnprintf+0xb4) [0xb7bd8b54]
 #5 /lib/tls/i686/cmov/libc.so.6(snprintf+0x35) [0xb7bbf695]
 #6 smbd(pidfile_create+0x22d) [0x822df4d]
 #7 smbd(main+0x943) [0x82da143]
 #8 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc) [0xb7b8febc]
 #9 smbd [0x808c7e1]
unable to change to /var/log/samba/cores/smbdrefusing to dump core

It may be a error, because I guess that smbd don't needs to access this file (/var/lib/samba/secrets.tdb), because the smb.conf specifies that all files must be created and used by /tmp/qemu-pidnumber/ dir.

To make things more complicated, when I run smbd manually with root user, smbd starts without any problem. Maybe we have a couple of problems, I don't know.

Well, if you need anything, please, contact me. I will be glad helping to solve this problem (sorry for my terrible English).

Best regards,
Alexandre

P.S.: don't you think that is a good idea makes qemu package recommends the samba package?