Comment 6 for bug 50385

Revision history for this message
In , Eugene V Budnikov (sandworm-chevy-niva) wrote : this bug also causes qemu shares fail

Package: samba
Version: 3.0.14a-6

qemu uses samba to share host fs in guest m$ os. it runs
smbd by unprivileged user (who runs qemu itself) with own
smb.conf like this:

[global]
private dir=/tmp/qemu-smb.11289
smb ports=0
socket address=127.0.0.1
pid directory=/tmp/qemu-smb.11289
lock directory=/tmp/qemu-smb.11289
log file=/tmp/qemu-smb.11289/log.smbd
smb passwd file=/tmp/qemu-smb.11289/smbpasswd
security = share
[qemu]
path=/home/user/SMB_QEMU
read only=no
guest ok=yes

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.

well, i've changed the permissions for all smbd-related
files in /var tree, but it also causes a conflict when i'm
running two qemus at the same time.