From: Jan Kiszka <jan.kiszka@web.de>
To: Jamie Lokier <jamie@shareable.org>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: [Qemu-devel] Re: Does anyone actually use -smb
Date: Tue, 05 May 2009 09:27:27 +0200 [thread overview]
Message-ID: <49FFEA5F.4000507@web.de> (raw)
In-Reply-To: <49FFDA1A.6090408@web.de>
[-- Attachment #1: Type: text/plain, Size: 1655 bytes --]
Jan Kiszka wrote:
> Jamie Lokier wrote:
>> Jan Kiszka wrote:
>>> Anthony Liguori wrote:
>>>> It looks to be broken. I don't recall that Samba has every supported
>>>> running as an unprivileged user to so it would require launching as root.
>>> It works perfectly. I even have a patch pending that fixes the zombie
>>> issue it causes (more precisely, slirp missed that).
>> I've been unable to use it for a year or so due to Samba having
>> hard-coded directory paths, pointing into /var/lib/samba, which cannot
>> be overridden in the config file smb.conf.
>>
>> (I forget which files were hard-coded, or which distro I hit that on.
>> Either CentOS, Debian or Ubuntu. Files were something like
>> /var/lib/samba/{locking,connections}.tdb, perhaps?)
>>
>> Because of those paths, non-root wasn't possible and running it as
>> root caused it to try to clobber some files which interfered with a
>> non-QEMU ("native") Samba running on the same machine for normal file
>> service.
>
> I ran strace -e open and only caught this:
>
> [pid 28902] open("/var/log/samba/log.smbd", O_WRONLY|O_CREAT|O_APPEND,
> 0644) = -1 EACCES (Permission denied)
>
> But that would only be a problem if I ran qemu as root. Hmm, wait, I can
> fix it by specifying the file like this:
>
> log file=/tmp/qemu-smb.28902/log.%m
Nope, this makes no difference. smbd still starts with accessing
/var/log/samba/log.smbd, writes a few lines into it (if it has access
permissions), then parses smb.conf, and finally switches over to the
specified log file. But that's a non-issue for the typical use case of
-smb: unprivileged qemu.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
next prev parent reply other threads:[~2009-05-05 7:27 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-04 18:20 [Qemu-devel] Does anyone actually use -smb Anthony Liguori
2009-05-04 20:19 ` [Qemu-devel] " Jan Kiszka
2009-05-04 20:25 ` Jan Kiszka
2009-05-04 21:36 ` Anthony Liguori
2009-05-04 21:40 ` Jan Kiszka
2009-05-05 1:47 ` Jamie Lokier
2009-05-05 6:18 ` Jan Kiszka
2009-05-05 7:27 ` Jan Kiszka [this message]
2009-05-05 12:13 ` Alexey Eremenko
2009-05-05 12:09 ` Jamie Lokier
2009-05-05 13:52 ` Jan Kiszka
2009-05-05 15:07 ` Avi Kivity
2009-05-05 12:10 ` Jamie Lokier
2009-05-05 13:34 ` Anthony Liguori
2009-05-05 13:55 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49FFEA5F.4000507@web.de \
--to=jan.kiszka@web.de \
--cc=aliguori@us.ibm.com \
--cc=jamie@shareable.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.