From owner-freebsd-questions@FreeBSD.ORG Wed Jul 16 15:26:23 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 2B623106564A for ; Wed, 16 Jul 2008 15:26:23 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: from mx1.identry.com (on.identry.com [66.111.0.194]) by mx1.freebsd.org (Postfix) with ESMTP id BC8738FC1B for ; Wed, 16 Jul 2008 15:26:22 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: (qmail 90521 invoked by uid 89); 16 Jul 2008 15:26:21 -0000 Received: from unknown (HELO ?192.168.1.110?) (jalmberg@75.127.142.66) by mx1.identry.com with ESMTPA; 16 Jul 2008 15:26:20 -0000 Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <3BC71C1E-DD8B-4FD9-870A-A2D385E556C8@identry.com> Content-Transfer-Encoding: 7bit X-Marketcircle-Dmi-Agent: <3BC71C1E-DD8B-4FD9-870A-A2D385E556C8@identry.com> From: John Almberg Date: Wed, 16 Jul 2008 11:26:19 -0400 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.752.3) Subject: how to simulate a user's crontab? 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: Wed, 16 Jul 2008 15:26:23 -0000 I often run into permission problems with user crontabs. That is, a crontab run under a user's permissions. First of all, it seems to me that a user's crontab doesn't have exactly the same permission as the user himself. Is this true? If so, what permissions does a user's crontab have? Is there anyway I can simulate these permissions on the command line, so I can test things before putting them in a crontab? What I'd like to avoid is the frustrating cycle of putting a line in a user's crontab (a few minutes ahead), waiting for it to fire off, have it fail, check error logs, try again... It would be much simpler if I could simulate the crontab's environment, and just run the thing from the command line. Any hope? I'm running FreeBSD 6.3 -- John