From owner-freebsd-questions@FreeBSD.ORG Thu Dec 11 16:35:25 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0F1716A4CE for ; Thu, 11 Dec 2003 16:35:25 -0800 (PST) Received: from post5.inre.asu.edu (post5.inre.asu.edu [129.219.110.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4A3943D1D for ; Thu, 11 Dec 2003 16:35:24 -0800 (PST) (envelope-from David.Bear@asu.edu) Received: from conversion.post5.inre.asu.edu by asu.edu (PMDF V6.1-1X6 #30769) id <0HPR00901AYEZQ@asu.edu> for freebsd-questions@freebsd.org; Thu, 11 Dec 2003 17:35:02 -0700 (MST) Received: from smtp.asu.edu (smtp.asu.edu [129.219.110.107]) by asu.edu (PMDF V6.1-1X6 #30769) with ESMTP id <0HPR0096HAYEQ5@asu.edu> for freebsd-questions@freebsd.org; Thu, 11 Dec 2003 17:35:02 -0700 (MST) Received: from moroni.pp.asu.edu (moroni.pp.asu.edu [129.219.120.183]) (8.12.10/8.12.10/asu_smtp_relay,nullclient,tcp_wrapped) with ESMTP id hBC0Z1S8006367 for ; Thu, 11 Dec 2003 17:35:01 -0700 (MST) Received: (from iddwb@localhost) by moroni.pp.asu.edu (8.11.6/8.11.6) id hBC0Z1V07762 for freebsd-questions@freebsd.org; Thu, 11 Dec 2003 17:35:01 -0700 Date: Thu, 11 Dec 2003 17:35:01 -0700 From: David Bear To: freebsd-questions@freebsd.org Message-id: <20031211173501.G4978@asu.edu> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5.1i Subject: startup scripts in /usr/local/etc/rc.d X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: David.Bear@asu.edu List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2003 00:35:26 -0000 I am wondering if scripts in /usr/local/etc/rc.d MUST be owned by root in order to be run. If I have a daemon on want started, AND I want it to run as user "DORK", can I have the binary and the startscript owned by user "DORK" in order to have it started that way? the more I think about this, the more I get confused... If a startup script lives in /usr/local/etc/rc.d does its ownership determine the ownership of the process it starts? or is the the owner of the binary the script starts that determines the owner of the process And, if it needs to change ownership, is it up to the program itself to change who it runs as? -- David Bear phone: 480-965-8257 fax: 480-965-9189 College of Public Programs/ASU Wilson Hall 232 Tempe, AZ 85287-0803 "Beware the IP portfolio, everyone will be suspect of trespassing"