From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlHDX-0005eN-9q for qemu-devel@nongnu.org; Mon, 03 Nov 2014 07:58:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlHDR-0004wU-LX for qemu-devel@nongnu.org; Mon, 03 Nov 2014 07:58:43 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:38877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlHDR-0004w9-Dq for qemu-devel@nongnu.org; Mon, 03 Nov 2014 07:58:37 -0500 Message-ID: <54577BFB.6040207@msgid.tls.msk.ru> Date: Mon, 03 Nov 2014 15:58:35 +0300 From: Michael Tokarev MIME-Version: 1.0 References: <544A846B.3040309@siemens.com> <1656709.LYGoHYHcpg@al> In-Reply-To: <1656709.LYGoHYHcpg@al> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] slirp-smb broken with Samba 4.1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Wu , qemu-devel@nongnu.org Cc: Jan Kiszka 03.11.2014 15:22, Peter Wu wrote: [] > As an aside, would it be possible to override the samba binary at runtime, > without compiling? Either an envvar (SMBD) or an option (-net > user,smb=...,smbd=...). The whole thing needs to be rewritten to use a shell script to create smb.conf and to call smbd. It's something I wanted to do for very long time, the only question is where to put this script so a user can easily customize it. In debian we have a rule that anything in /etc is a conffile, and it gets upgraded (when upgrading the corresponding package) only if it hasn't been modified by the user. Everything else (in /usr/lib, /usr/share etc) gets upgraded unconditionally. So maybe storing it in /etc/qemu/run-smbd.sh or somehting like that makes sense. The rest is a shell code to create smb.conf in a temp dir -- the same as current code does in qemu, plus all your additions, plus whatever else might be needed (that script can even query which samba version is in use and enable one or another option). But this is definitely not a 2.2 matherial. Thanks, /mjt