From owner-freebsd-questions Tue Jun 25 0:24:14 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by hub.freebsd.org (Postfix) with ESMTP id CFB9C37B401 for ; Tue, 25 Jun 2002 00:24:03 -0700 (PDT) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.4/8.12.4) with ESMTP id g5P7O24W013511; Tue, 25 Jun 2002 08:24:02 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.4/8.12.4/Submit) id g5P7NuQu013510; Tue, 25 Jun 2002 08:23:56 +0100 (BST) Date: Tue, 25 Jun 2002 08:23:56 +0100 From: Matthew Seaman To: milan nankov Cc: questions@FreeBSD.ORG Subject: Re: indetd.conf question Message-ID: <20020625072356.GA13320@happy-idiot-talk.infracaninophi> References: <20020625070439.66209.qmail@web14405.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020625070439.66209.qmail@web14405.mail.yahoo.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Jun 25, 2002 at 12:04:39AM -0700, milan nankov wrote: > i have made my samba server to run at boot by add 2 > line to the inetd.conf but when the system boots the > error : "inetd[86]: netbios-ns/udp server failing > (looping), service terminated" shows > > these are my 2 lines > netbios-ssn stream tcp nowait smb > /usr/local/samba/sbin/smbd -D > > netbios-ns dgram udp nowait smb > /usr/local/samba/sbin/nmbd -D Make that: netbios-ssn stream tcp nowait root /usr/local/sbin/smbd smbd netbios-ns dgram udp wait root /usr/local/sbin/nmbd nmbd Particularly, don't use the `-D' flag as that tells smbd or nmbd that it's being run as a standalone daemon and specifically not from inetd. Also only one nmbd should be run at a time, hence you need inetd to wait for the current invocation to finish before starting a new one. I don't know if it's possible to run Samba daemons under other than root --- I guess they will, because they need root in order to set permissions and ownership on the files they serve. However, I could be wrong. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Tel: +44 1628 476614 Marlow Fax: +44 0870 0522645 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message