From owner-freebsd-questions Thu Nov 21 14:11:24 2002 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 62BEF37B401 for ; Thu, 21 Nov 2002 14:11:23 -0800 (PST) Received: from anchor-post-39.mail.demon.net (anchor-post-39.mail.demon.net [194.217.242.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0E3743E91 for ; Thu, 21 Nov 2002 14:11:22 -0800 (PST) (envelope-from jeff@jrpenn.demon.co.uk) Received: from jrpenn.demon.co.uk ([194.222.241.254]) by anchor-post-39.mail.demon.net with esmtp (Exim 3.36 #2) id 18EzXd-0002Mr-0U for freebsd-questions@freebsd.org; Thu, 21 Nov 2002 22:11:21 +0000 Received: from jrpenn.demon.co.uk (localhost [127.0.0.1]) by jrpenn.demon.co.uk (8.12.6/8.12.6) with ESMTP id gALMCStd003952 for ; Thu, 21 Nov 2002 22:12:28 GMT (envelope-from jeff@jrpenn.demon.co.uk) Received: (from jeff@localhost) by jrpenn.demon.co.uk (8.12.6/8.12.6/Submit) id gALMBtO7003948 for freebsd-questions@freebsd.org; Thu, 21 Nov 2002 22:11:55 GMT Date: Thu, 21 Nov 2002 22:11:55 +0000 From: Jeff Penn To: freebsd-questions@freebsd.org Subject: Changing to/from user within script Message-ID: <20021121221155.GA3926@jrpenn.demon.co.uk> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i 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 Possibly a trivial question. I want to run a cron job as a user on my system. Once the job has completed I need root privileges to power the system down. I don't mind if the script has to run as a root cron job, but running the processing as a user will prevent against filling a partition. Can this be done without running two different cron jobs?. thanks Jeff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message