From owner-freebsd-questions Sat Nov 10 6:29:59 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pr0n.kutulu.org (pr0n.kutulu.org [151.196.107.157]) by hub.freebsd.org (Postfix) with ESMTP id 0BFC437B42A for ; Sat, 10 Nov 2001 06:29:57 -0800 (PST) Received: from cc191573g (kutulu@cc191573-g.longhill1.md.home.com [24.37.104.136]) by pr0n.kutulu.org (8.11.6/8.11.6) with SMTP id fAAETfk21916; Sat, 10 Nov 2001 09:29:41 -0500 (EST) (envelope-from kutulu@kutulu.org) Message-ID: <010f01c169f3$79613e30$88682518@longhill1.md.home.com> From: "Kutulu" To: "Alan Gerber" , References: Subject: Re: Run program as different user Date: Sat, 10 Nov 2001 09:24:56 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 From: "Alan Gerber" > I recently began playing with the concept of starting a daemon at startup > (from what I gather, I should put the initialization commands into > rc.local), but the tough part is that I need this program run in a non-root > environment (ie- not as root!). Is there a good way to do this? Please > respond to my email address (not the list), because I am not subscribed yet. Add a cron job for the correct user, specify "@reboot" in place of all 5 time fields. 'man 5 crontab' for more details. --K To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message