From owner-freebsd-questions Sat Mar 2 9:58:53 2002 Delivered-To: freebsd-questions@freebsd.org Received: from laika.martini.nu (12-224-18-46.client.attbi.com [12.224.18.46]) by hub.freebsd.org (Postfix) with SMTP id 0E71C37B400 for ; Sat, 2 Mar 2002 09:58:51 -0800 (PST) Received: (qmail 19963 invoked by uid 1001); 2 Mar 2002 17:58:50 -0000 Date: Sat, 2 Mar 2002 09:58:49 -0800 To: rachel Cc: freebsd-questions@FreeBSD.ORG Subject: Re: /etc/rc.local Message-ID: <20020302095849.D77232@martini.nu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from "listbox_8811@hotmail.com" on Sat, Mar 02, 2002 at 09:53:11AM X-Sysinfo: FreeBSD 4.5-RELEASE, up 6 days From: Mahlon X-Delivery-Agent: TMDA/0.44 (Python 2.2; freebsd-4.5-RELEASE-i386) 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 > I want to be able to run a command from /etc/rc.local as a specific user. > Is there a tool or script that will change ownership from root to another > user from that startup script? Check the man page for su, specifically the -c and -m switches. > Lastly is there a tool that will do this and also restart the process if it > dies? cd /usr/ports/ && make search key=daemontools -Mahlon Mahlon E. Smith jabber id: mahlon@chat.martini.nu http://www.martini.nu/ get pgp key: mahlon-pgp@martini.nu .......................................................................... If you cannot convince them, confuse them. -- Harry S Truman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message