From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cc9zy-0007IF-UG for qemu-devel@nongnu.org; Wed, 08 Dec 2004 17:09:27 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cc9zy-0007Hm-5z for qemu-devel@nongnu.org; Wed, 08 Dec 2004 17:09:26 -0500 Received: from [129.104.30.34] (helo=mx1.polytechnique.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cc9px-0004ex-9N for qemu-devel@nongnu.org; Wed, 08 Dec 2004 16:59:05 -0500 Received: from localhost (localhost [127.0.0.1]) by djali.polytechnique.org (Postfix) with ESMTP id C050133185 for ; Wed, 8 Dec 2004 22:59:03 +0100 (CET) Received: from djali.polytechnique.org ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08678-10 for ; Wed, 8 Dec 2004 22:59:03 +0100 (CET) Received: from [84.99.204.54] (unknown [84.99.204.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTP id 8F2AC33171 for ; Wed, 8 Dec 2004 22:59:03 +0100 (CET) Message-ID: <41B77941.9010508@bellard.org> Date: Wed, 08 Dec 2004 22:59:29 +0100 From: Fabrice Bellard MIME-Version: 1.0 Subject: Re: [Qemu-devel] SAMBA support in QEMU References: <413BA018.60601@bellard.org> <41B5C20A.6010807@kadu.net> <41B6C8D9.4090400@kadu.net> <41B717E6.5080600@kadu.net> In-Reply-To: <41B717E6.5080600@kadu.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Adrian Smarzewski wrote: > Adrian Smarzewski wrote: > >> I can run it as root only. What files must be writable for user to run >> smbd via qemu? > > > bash-2.05b$ /usr/sbin/smbd -i > smbd version 3.0.8 started. > Copyright Andrew Tridgell and the Samba Team 1992-2004 > file_init: Information only: requested 10000 open files, 1004 are > available. > bind failed on port 445 socket_addr = 0.0.0.0. > > I think smb support is "root-only" or is near it :( > Any ideas? QEMU gives specific commands to smbd so that it can be run as non root (in particular, it uses stdio to communicate with smbd instead of a priviledged socket with a port < 1024). I think your problem comes from the fact that you use smbd version 3. I only tested QEMU with the version 2. The solution would be either to support version 3 or to include the smbd code in QEMU so that we can be sure it behaves as expected. Fabrice.