From owner-freebsd-questions Fri Mar 20 12:58:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA24047 for freebsd-questions-outgoing; Fri, 20 Mar 1998 12:58:56 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from shell.futuresouth.com (shell.futuresouth.com [207.141.254.20]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA24036 for ; Fri, 20 Mar 1998 12:58:46 -0800 (PST) (envelope-from fullermd@futuresouth.com) Received: from shell.futuresouth.com (mail.futuresouth.com [207.141.254.21]) by shell.futuresouth.com (8.8.8/8.8.8) with SMTP id OAA06668; Fri, 20 Mar 1998 14:58:41 -0600 (CST) Date: Fri, 20 Mar 1998 14:58:41 -0600 (CST) From: "Matthew D. Fuller" To: derek laufenberg cc: freebsd questions Subject: Re: starting a server at boot In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 20 Mar 1998, derek laufenberg wrote: > This is a basic unix question, but I dont know the normal way this is > done. After bootup I want to start a series of network daemons. > I'd like to start them from rc.local, but I don't want this stuff running > as root. > > What is the standard BSD (if there is one) way to do this sort of thing? > I thought about using inetd, but this software was not designed for > that kind of use. It may work - I'm trying it now. The 'Right Way' (from man su): EXAMPLES su man -c catman Runs the command catman as user man. You will be asked for man's password unless your real UID is 0. su man -c 'catman /usr/share/man /usr/local/man /usr/X11R6/man' Same as above, but the target command constitutes of more than a single word. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | FreeBSD; the way computers were meant to be | * "The only reason I'm burning my candle at both ends, is * | that I haven't figured out how to light the middle yet."| * fullermd@futuresouth.com :-} MAtthew Fuller * | http://keystone.westminster.edu/~fullermd | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message