[sllug-members]: Cron and permissions

Walt Haas haas at xmission.com
Fri Aug 11 21:23:41 MDT 2006


"Brandon Toone" <btoone at gmail.com> wrote:

> I am able to log in as a user and manually run a script by copy + paste the
> exact same command listed from the output of "crontab -l" but for some
> reason when cron tries to run it by itself it errors with a permission
> denied.  Does cron run as a separate user than the one with the job?  Where
> else would I look to track down this type of permission issue?
> 
> Thanks in advance.
> -b

Is the execute bit set on the script cron is expected to execute?
Are there any relevant entries in /etc/cron.allow or /etc/cron.deny?
Does the cron script in question set up the same environment, in the
relevant aspects, as the user gets when logged in?

-- Walt
-------
Walt Haas          The Web Site Doctor - Cures Sick Web Sites
(801) 534-1262     http://thewebsitedoctor.net


More information about the sllug-members mailing list