From owner-freebsd-questions@FreeBSD.ORG Thu Oct 2 15:36:48 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90E191065697 for ; Thu, 2 Oct 2008 15:36:48 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from ayn.mi.celestial.com (hayek.celestial.com [192.136.111.12]) by mx1.freebsd.org (Postfix) with ESMTP id 36B868FC15 for ; Thu, 2 Oct 2008 15:36:47 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from localhost (localhost [127.0.0.1]) by ayn.mi.celestial.com (Postfix) with ESMTP id DFCF468BA6623; Thu, 2 Oct 2008 08:36:46 -0700 (PDT) X-Virus-Scanned: amavisd-new at mi.celestial.com Received: from ayn.mi.celestial.com ([127.0.0.1]) by localhost (ayn.mi.celestial.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6j9YP2MmT+SY; Thu, 2 Oct 2008 08:36:46 -0700 (PDT) Received: by ayn.mi.celestial.com (Postfix, from userid 203) id C3C45680036BF; Thu, 2 Oct 2008 08:36:46 -0700 (PDT) Date: Thu, 2 Oct 2008 08:36:46 -0700 From: Bill Campbell To: freebsd-questions@freebsd.org Message-ID: <20081002153646.GA24929@ayn.mi.celestial.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <48E4E4B8.90202@pixelhammer.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48E4E4B8.90202@pixelhammer.com> User-Agent: Mutt/1.5.18 OpenPKG/% (2008-05-17) Subject: Re: Running cron jobs as nobody X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Oct 2008 15:36:48 -0000 You can use ``su -c '/path/to/command' username'' to run scripts as users other than root. Another way is to use ``crontab -u username''. man crontab for details. Bill -- INTERNET: bill@celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax: (206) 232-9186 Of all the contrivances devised for cheating the laboring classes of mankind, none has been more effective than that which deludes him with paper money. -- -Daniel Webster