From: Jamie Lokier <jamie@shareable.org>
To: Jan Kiszka <jan.kiszka@web.de>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Re: Does anyone actually use -smb
Date: Tue, 5 May 2009 13:10:39 +0100 [thread overview]
Message-ID: <20090505121039.GC25328@shareable.org> (raw)
In-Reply-To: <49FFDA1A.6090408@web.de>
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)
Is that just starting Samba, or accessing a share from a Windows guest
and doing some file accesses with locking?
-- Jamie
next prev parent reply other threads:[~2009-05-05 12:10 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
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 [this message]
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=20090505121039.GC25328@shareable.org \
--to=jamie@shareable.org \
--cc=aliguori@us.ibm.com \
--cc=jan.kiszka@web.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).