From: "Michael Büsch" <m@bues.ch>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: 727756@bugs.debian.org, qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Bug#727756: qemu: Broken -smb with latest SAMBA package. (Unsupported security=share option)
Date: Fri, 1 Nov 2013 10:54:32 +0100 [thread overview]
Message-ID: <20131101105432.5f45f689@wiggum> (raw)
In-Reply-To: <52737541.3030802@msgid.tls.msk.ru>
[-- Attachment #1.1: Type: text/plain, Size: 255 bytes --]
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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: fix-smb-security-share.patch --]
[-- Type: text/x-patch, Size: 1199 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"
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2013-11-01 9:55 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 ` [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 [this message]
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=20131101105432.5f45f689@wiggum \
--to=m@bues.ch \
--cc=727756@bugs.debian.org \
--cc=mjt@tls.msk.ru \
--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).