From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1Dyp-0007dZ-5r for qemu-devel@nongnu.org; Tue, 05 May 2009 02:18:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1Dyk-0007d2-I7 for qemu-devel@nongnu.org; Tue, 05 May 2009 02:18:14 -0400 Received: from [199.232.76.173] (port=36709 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1Dyk-0007cz-E6 for qemu-devel@nongnu.org; Tue, 05 May 2009 02:18:10 -0400 Received: from fmmailgate02.web.de ([217.72.192.227]:60631) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1Dyj-0003ih-Rk for qemu-devel@nongnu.org; Tue, 05 May 2009 02:18:10 -0400 Message-ID: <49FFDA1A.6090408@web.de> Date: Tue, 05 May 2009 08:18:02 +0200 From: Jan Kiszka MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: Does anyone actually use -smb References: <49FF31E4.8040106@us.ibm.com> <49FF4DC2.4020003@web.de> <20090505014744.GD12731@shareable.org> In-Reply-To: <20090505014744.GD12731@shareable.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigFC8D7EDE31B70F253DB044EB" Sender: jan.kiszka@web.de List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jamie Lokier Cc: Anthony Liguori , "qemu-devel@nongnu.org" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFC8D7EDE31B70F253DB044EB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 r= oot. >> It works perfectly. I even have a patch pending that fixes the zombie >> issue it causes (more precisely, slirp missed that). >=20 > 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. >=20 > (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?) >=20 > 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) =3D -1 EACCES (Permission denied) But that would only be a problem if I ran qemu as root. Hmm, wait, I can fix it by specifying the file like this: log file=3D/tmp/qemu-smb.28902/log.%m Will write a patch for qemu. >=20 > I guess if you have a private build of Samba you can avoid this > problem, but even then I'm wondering how you ensure different Samba > instances don't interfere with each other, as there is nowhere in > smb.conf to specify an alternate location for those files normally in > /var/lib/samba. >=20 > Jan, do you do anything special for -smb or does it just work? What > distro and distro version are you using? OpenSUSE 11.0 with samba-3.2.4-4.3 and 11.1 with samba-3.2.7-11.2.1. Maybe you should file a bug at your distro if its version doesn't behave according to its docs. Jan --------------enigFC8D7EDE31B70F253DB044EB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkn/2h8ACgkQniDOoMHTA+kWRgCfaW1UI4+fPglCdLWG/1X81qaY oaQAn07c4+F0iiUJ7bBBxBtUC7taUiIc =4sIQ -----END PGP SIGNATURE----- --------------enigFC8D7EDE31B70F253DB044EB--