Comment 19 for bug 50385

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

This issue still affects Feisty running stock installations of samba. The issue is in samba but affects QEMU.

It appears the issue is that the samba packages for Debian/Ubuntu are compiled with the fhs.patch applied, which prevents samba from using a private secrets directory.

There has been ongoing commentary for several years on the debian bug tracker:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=249873

Quote:

but smbd with fhs.patch ignores private dir option, tries to
open /var/lib/samba/secrets.tdb instead of
/tmp/qemu-smb.11289/secrets.tdb and fails because this file
is closed for unprivileged user.