From owner-freebsd-questions@FreeBSD.ORG Fri Dec 12 03:12:14 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 DB67616A4CE for ; Fri, 12 Dec 2003 03:12:13 -0800 (PST) Received: from office.adept.co.za (office.adept.co.za [196.44.32.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CBD243D8A for ; Fri, 12 Dec 2003 03:05:17 -0800 (PST) (envelope-from ondrugs@ananzi.co.za) Received: from ananzi.co.za (unknown [192.168.1.11]) by office.adept.co.za (Postfix) with ESMTP id C73F511EFE8 for ; Fri, 12 Dec 2003 13:05:14 +0200 (SAST) Message-ID: <3FD9A0E3.6050206@ananzi.co.za> Date: Fri, 12 Dec 2003 13:05:07 +0200 From: Andre Grove User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20031211173501.G4978@asu.edu> <441xrah8wx.fsf@be-well.ilk.org> In-Reply-To: <441xrah8wx.fsf@be-well.ilk.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: startup scripts in /usr/local/etc/rc.d X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2003 11:12:14 -0000 Why would a script not run? I have a script in /usr/local/etc/rc.d, I did chmod +x it, but it still does not run at startup. Maybe I should re-install! :P Andre Lowell Gilbert wrote: >*This message was transferred with a trial version of CommuniGate(tm) Pro* >David Bear writes: > > > >>I am wondering if scripts in /usr/local/etc/rc.d MUST be owned by root >>in order to be run. >> >> > >No. They have to be executable by root. > > > >>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? >> >> > >It will run, but it will still run as root. > > > >>the more I think about this, the more I get confused... >> >> > >Apparently. > > > >>If a startup script lives in /usr/local/etc/rc.d does its ownership >>determine the ownership of the process it starts? >> >> > >No. > > > >>or is the the owner of the binary the script starts that determines >>the owner of the process >> >> > >Not that either. > > > >>And, if it needs to change ownership, is it up to the program itself >>to change who it runs as? >> >> > >The script can start a program under a different user if it wants. >Many of the standard ones do so, typically using su(1). > > >