From owner-freebsd-questions@FreeBSD.ORG Mon Dec 5 02:01:57 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 73B7416A41F for ; Mon, 5 Dec 2005 02:01:57 +0000 (GMT) (envelope-from dr2867@pacbell.net) Received: from smtp106.sbc.mail.mud.yahoo.com (smtp106.sbc.mail.mud.yahoo.com [68.142.198.205]) by mx1.FreeBSD.org (Postfix) with SMTP id ED19043D53 for ; Mon, 5 Dec 2005 02:01:56 +0000 (GMT) (envelope-from dr2867@pacbell.net) Received: (qmail 48060 invoked from network); 5 Dec 2005 02:01:56 -0000 Received: from unknown (HELO ?192.168.0.190?) (dr2867.business@pacbell.net@69.233.60.243 with plain) by smtp106.sbc.mail.mud.yahoo.com with SMTP; 5 Dec 2005 02:01:56 -0000 Message-ID: <43939FA9.3080501@pacbell.net> Date: Sun, 04 Dec 2005 18:02:17 -0800 From: Daniel Rudy User-Agent: Mozilla/5.0 (X11R6; UNIX; FreeBSD/i386 5.4-RELEASE-p7; en-US; ja-JP; rv:1.7.12) Gecko/20050915 MultiZilla/1.6.2.0c Mnenhy/0.7.2.0 X-Accept-Language: en-us, en, ja MIME-Version: 1.0 To: Ian Lord References: <7.0.0.16.2.20051203201101.061b5dd8@msdi.ca> In-Reply-To: <7.0.0.16.2.20051203201101.061b5dd8@msdi.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: schedule a script at "system startup" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2005 02:01:57 -0000 At about the time of 12/3/2005 5:18 PM, Ian Lord stated the following: > Hi, > > I would like to run a shell script at system startup which needs to > run under a specific uid... > > I don't see anything for this in man cron... > > is there a way to do it with cron ? or otherwise is there another way ? > > I guess there might be a way to put a script in /etc/rd.d/ but I > don't know how to run it under a specifid uid > > Any help would be appreciated > > Thanks > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > @reboot username command The @reboot is a BSD extension. -- Daniel Rudy