From: Michael Tokarev <mjt@tls.msk.ru>
To: "Michael Büsch" <m@bues.ch>, 727756@bugs.debian.org
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Bug#727756: qemu: Broken -smb with latest SAMBA package. (Unsupported security=share option)
Date: Sat, 26 Oct 2013 13:19:29 +0400 [thread overview]
Message-ID: <526B8921.3060605@msgid.tls.msk.ru> (raw)
In-Reply-To: <20131026090745.14894.51156.reportbug@localhost>
26.10.2013 13:07, Michael Büsch wrote:
> Package: qemu
> Version: 1.6.0+dfsg-2
> Severity: normal
> Tags: patch
>
> The smb.conf automatically generated by qemu's -smb option fails on current samba,
> because smbd rejects the security=share option with the following warning:
>
>> WARNING: Ignoring invalid value 'share' for parameter 'security'
>
> Which makes it fall back to security=user without guest login.
> This results in being unable to login to the samba server from the guest OS.
>
> The attached patch fixes this by selecting 'user' explicitly and mapping
> unknown users to guest logins.
Index: qemu-1.6.0+dfsg/net/slirp.c
===================================================================
--- qemu-1.6.0+dfsg.orig/net/slirp.c
+++ qemu-1.6.0+dfsg/net/slirp.c
@@ -529,7 +529,8 @@ static int slirp_smb(SlirpState* s, cons
"state directory=%s\n"
"log file=%s/log.smbd\n"
"smb passwd file=%s/smbpasswd\n"
- "security = share\n"
+ "security = user\n"
+ "map to guest = Bad User\n"
"[qemu]\n"
"path=%s\n"
"read only=no\n"
Thank you for the report and the patch Michael. Are you sure the result
is equivalent? I mean, it *looks* like okay, because [qemu] share definition -
which looks like this:
[qemu]
path=%s
read only=no
guest ok=yes
force user=%s
explicitly says that guest is okay, and forces user to the
right one. And it should work the same with other versions
of samba too.
But samba collected so many semi-conflicting options with
years, so I'm not sure anymore.
Also, which users are "bad" -- will it be possible for our
user to "clash" with some built-in/known user?
Cc'ing qemu-devel@ because this needs to be resolved
upstream too.
Thank you again,
/mjt
next parent reply other threads:[~2013-10-26 9:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20131026090745.14894.51156.reportbug@localhost>
2013-10-26 9:19 ` Michael Tokarev [this message]
2013-10-26 16:44 ` [Qemu-devel] Bug#727756: qemu: Broken -smb with latest SAMBA package. (Unsupported security=share option) Michael Büsch
2013-11-01 9:32 ` Michael Tokarev
2013-11-01 9:54 ` Michael Büsch
2013-11-01 10:10 ` [Qemu-devel] [PATCH] " Michael Tokarev
2013-11-03 20:06 ` Jan Kiszka
2013-11-04 13:55 ` Michael Tokarev
2013-11-04 14:04 ` Jan Kiszka
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=526B8921.3060605@msgid.tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=727756@bugs.debian.org \
--cc=m@bues.ch \
--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.