From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1JU1-0006q6-8z for qemu-devel@nongnu.org; Tue, 05 May 2009 08:10:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1JTw-0006nt-Ci for qemu-devel@nongnu.org; Tue, 05 May 2009 08:10:48 -0400 Received: from [199.232.76.173] (port=38819 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1JTw-0006no-9V for qemu-devel@nongnu.org; Tue, 05 May 2009 08:10:44 -0400 Received: from mail2.shareable.org ([80.68.89.115]:46030) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M1JTv-000367-Mk for qemu-devel@nongnu.org; Tue, 05 May 2009 08:10:44 -0400 Date: Tue, 5 May 2009 13:10:39 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] Re: Does anyone actually use -smb Message-ID: <20090505121039.GC25328@shareable.org> References: <49FF31E4.8040106@us.ibm.com> <49FF4DC2.4020003@web.de> <20090505014744.GD12731@shareable.org> <49FFDA1A.6090408@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49FFDA1A.6090408@web.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Anthony Liguori , "qemu-devel@nongnu.org" Jan Kiszka wrote: > Jamie Lokier wrote: > > Jan Kiszka wrote: > >> Anthony Liguori wrote: > >>> It looks to be broken. I don't recall that Samba has every supported > >>> running as an unprivileged user to so it would require launching as root. > >> It works perfectly. I even have a patch pending that fixes the zombie > >> issue it causes (more precisely, slirp missed that). > > > > I've been unable to use it for a year or so due to Samba having > > hard-coded directory paths, pointing into /var/lib/samba, which cannot > > be overridden in the config file smb.conf. > > > > (I forget which files were hard-coded, or which distro I hit that on. > > Either CentOS, Debian or Ubuntu. Files were something like > > /var/lib/samba/{locking,connections}.tdb, perhaps?) > > > > Because of those paths, non-root wasn't possible and running it as > > root caused it to try to clobber some files which interfered with a > > non-QEMU ("native") Samba running on the same machine for normal file > > service. > > I ran strace -e open and only caught this: > > [pid 28902] open("/var/log/samba/log.smbd", O_WRONLY|O_CREAT|O_APPEND, > 0644) = -1 EACCES (Permission denied) Is that just starting Samba, or accessing a share from a Windows guest and doing some file accesses with locking? -- Jamie