qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Fix SMB security configuration on newer samba versions
@ 2013-10-21 11:50 Michael Büsch
  2013-10-27 10:50 ` Amos Kong
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Büsch @ 2013-10-21 11:50 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 984 bytes --]

The following changes fix the samba security configuration on
newer samba versions.

samba version 4.0.10-Debian throws this warning:

>   WARNING: Ignoring invalid value 'share' for parameter 'security'

Which makes it fall back to security=user without guest login.

Fix this by selecting 'user' explicitly and mapping unknown users to guest logins.

Signed-off-by: Michael Buesch <m@bues.ch>

---
Index: qemu-1.6.1/net/slirp.c
===================================================================
--- qemu-1.6.1.orig/net/slirp.c	2013-10-09 21:20:32.000000000 +0200
+++ qemu-1.6.1/net/slirp.c	2013-10-21 13:49:39.918960448 +0200
@@ -529,7 +529,8 @@
             "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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-27 13:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-21 11:50 [Qemu-devel] Fix SMB security configuration on newer samba versions Michael Büsch
2013-10-27 10:50 ` Amos Kong
2013-10-27 13:26   ` Michael Büsch

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).