https://bugzilla.novell.com/show_bug.cgi?id=853379
https://bugzilla.novell.com/show_bug.cgi?id=853379#c4
--- Comment #4 from Mark Draheim 2014-06-13 15:14:05 UTC ---
Right, there is something wrong with how qemu invokes its non-root smbd
instance. If I patch into qemu's smb.conf a non-system path for ncalrpc dir as
suggested above, then I get a new error that /var/cache/samba/printing is not
accessible. If I patch again and redirect cache directory somewhere else, then
smbd fails claiming it cannot find its pid file, though that path is already in
the conf. In all cases smbd just stalls and the win7 running in qemu tells me
that the resource has vanished.
Now, the odd thing is, I can take the qemu generated smb.conf and run smbd on
it as a normal user (me), on a non-privileged port like 1445, just fine. There
are a few warnings at smbd startup about it being unable to access
/var/log/samba/log.smbd but it does start and then writes its messages to the
log path configured in my smb.conf. I can mount the share and access the files.
:~> smbd -D -p 1445 -s /tmp/tmp-me/smb/smb.conf
[2014/06/13 16:44:12, 0] ../lib/util/debug.c:595(reopen_logs_internal)
Unable to open new log file '/var/log/samba/log.smbd': Keine Berechtigung
[2014/06/13 16:44:12, 0] ../source3/lib/dumpcore.c:249(dump_core_setup)
Unable to setup corepath for smbd: Keine Berechtigung
[2014/06/13 16:44:12, 0] ../lib/util/debug.c:595(reopen_logs_internal)
Unable to open new log file '/var/log/samba/log.smbd': Keine Berechtigung
[2014/06/13 16:44:12, 0] ../source3/smbd/server.c:1203(main)
smbd version 4.1.6-3.18.1-3208-SUSE-oS13.1-x86_64 started.
Copyright Andrew Tridgell and the Samba Team 1992-2013
:~> sudo mount -t cifs -o port=1445,username=me //127.0.0.1/qemu /mnt/disk
Password for me@//127.0.0.1/qemu: *
:~> cat /tmp/tmp-me/smb/smb.conf
[global]
private dir=/tmp/tmp-me/smb
socket address=127.0.0.1
pid directory=/tmp/tmp-me/smb
lock directory=/tmp/tmp-me/smb
state directory=/tmp/tmp-me/smb
cache directory=/tmp/tmp-me/smb
ncalrpc dir=//tmp/tmp-me/smb/ncalrpc
log file = /tmp/tmp-me/smb/log.smbd
smb passwd file=/tmp/tmp-me/smb/smbpasswd
security = user
map to guest = Bad User
[qemu]
path=/home/me
read only=no
guest ok=yes
force user=me
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.