Date: Tue, 25 Jun 2002 08:23:56 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: milan nankov <milkan4o@yahoo.com> Cc: questions@FreeBSD.ORG Subject: Re: indetd.conf question Message-ID: <20020625072356.GA13320@happy-idiot-talk.infracaninophi> In-Reply-To: <20020625070439.66209.qmail@web14405.mail.yahoo.com> References: <20020625070439.66209.qmail@web14405.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020625072356.GA13320>