From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xhlhq-0001j6-Eu for qemu-devel@nongnu.org; Fri, 24 Oct 2014 16:43:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xhlhk-00066Y-B1 for qemu-devel@nongnu.org; Fri, 24 Oct 2014 16:43:30 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:54396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xhlhk-00066U-3K for qemu-devel@nongnu.org; Fri, 24 Oct 2014 16:43:24 -0400 Message-ID: <544AB9EA.7050809@msgid.tls.msk.ru> Date: Sat, 25 Oct 2014 00:43:22 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <544A846B.3040309@siemens.com> <544A9A6E.9080700@msgid.tls.msk.ru> <544AAF6D.2060101@msgid.tls.msk.ru> In-Reply-To: <544AAF6D.2060101@msgid.tls.msk.ru> Content-Type: text/plain; charset=UTF-8 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: Jan Kiszka Cc: qemu-devel On 10/24/2014 11:58 PM, Michael Tokarev wrote: > My 4.1.11 version tries to open /var/log/samba/log.smbd.bin file and > gives up. After I created that file and chowned it to me it works. (that .bin comes from /me renaming smbd to smbd.bin to run it under strace from a tiny shell wrapper under original name). I just sent a small patch which adds a command-line switch to smbd. It looks like if smbd needs to log something before it parses smb.conf, it will log to /var/log/samba/log.$progname, but if that fails smbd will exit. And together with samba4 something else has been upgraded on my system (or maybe samba started to load/init more stuff), so now when smbd loads its libraries and initializes stuff it tries to warn about obsolete name /etc/pkcs11/modules/gnome-keyring-module and does that _before_ reading smb.conf. That patch makes my samba to work. So my conclusion about missing inetd mode was wrong. But I really wonder if we should run a helper script to set things up instead of hardcoding it all into qemu binary... It is so much easier to modify and debug the script. > What error are you getting when run it as root? Is there anything else missing on your side? /mjt