From: Michael Tokarev <mjt@tls.msk.ru>
To: "Michael Büsch" <m@bues.ch>, 727756@bugs.debian.org
Cc: Jan Kiszka <jan.kiszka@siemens.com>, qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [PATCH] qemu: Broken -smb with latest SAMBA package. (Unsupported security=share option)
Date: Fri, 01 Nov 2013 14:10:16 +0400 [thread overview]
Message-ID: <52737E08.4050908@msgid.tls.msk.ru> (raw)
In-Reply-To: <20131101105432.5f45f689@wiggum>
[-- Attachment #1: Type: text/plain, Size: 645 bytes --]
01.11.2013 13:54, Michael Büsch wrote:
> On Fri, 01 Nov 2013 13:32:49 +0400
> Michael Tokarev <mjt@tls.msk.ru> wrote:
>
>> That looks right. Are you okay adding your Signed-off-by to the patch
>> you initially submitted? If yes, I'll make a formal patch submission
>> upstream.
>
> Here you go.
Thank you!
Adding Jan as slirp maintainer, and my
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
If Jan picks it up, that's fine. If not, I think it can go
to the trivial patches queue.
Jan, if you missed context, it is in http://bugs.debian.org/727756
It is not the first time this issue pops up on qemu-devel@
/mjt
[-- Attachment #2: fix-smb-security-share.patch --]
[-- Type: text/x-patch, Size: 1167 bytes --]
From: Michael Buesch <m@bues.ch>
Subject: [PATCH] qemu/slirp: Fix SMB security configuration on newer samba versions
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.
This fixes it by selecting 'user' explicitly and mapping
unknown users to guest logins.
Signed-off-by: Michael Buesch <m@bues.ch>
---
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"
next prev parent reply other threads:[~2013-11-01 10:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20131026090745.14894.51156.reportbug@localhost>
2013-10-26 9:19 ` [Qemu-devel] Bug#727756: qemu: Broken -smb with latest SAMBA package. (Unsupported security=share option) Michael Tokarev
2013-10-26 16:44 ` Michael Büsch
2013-11-01 9:32 ` Michael Tokarev
2013-11-01 9:54 ` Michael Büsch
2013-11-01 10:10 ` Michael Tokarev [this message]
2013-11-03 20:06 ` [Qemu-devel] [PATCH] " Jan Kiszka
2013-11-04 13:55 ` Michael Tokarev
2013-11-04 14:04 ` Jan Kiszka
2014-02-05 9:53 Michael Tokarev
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=52737E08.4050908@msgid.tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=727756@bugs.debian.org \
--cc=jan.kiszka@siemens.com \
--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.