1833923 Members
4723 Online
110063 Solutions
New Discussion

Cron Job

 
SOLVED
Go to solution
David Santoro_1
Occasional Advisor

Cron Job

Is a non-root user allowed to set up an individual cron job? We recenlty changed from 11.0 to 11i and tried adding a cron job for the for a user. In 11.0 this user had its own cron job to run the nightly backups. Attempting to perform the same cron job on the 11i box and this cannot be set up. I gave them the syntax to run the job under the root cron job and that should allow them to perform the backup as before but I’d like to know if it’s possible for non-root users to set up their own cron jobs.

Thanks

"Learning new (new to me) UNIX stuff everyday."
3 REPLIES 3
Victor BERRIDGE
Honored Contributor
Solution

Re: Cron Job

Hi,
The answer is ask the admins...
There is a file for that: /var/adm/cron/cron.allow



All the best
Victor
Pete Randall
Outstanding Contributor

Re: Cron Job

Check your /var/adm/cron/cron.allow file. Probably on the old system this file had been modified to allow this user to run cron jobs.


Pete

Pete
Peter Godron
Honored Contributor

Re: Cron Job

Hi,
the info given previously is also explained in "man crontab"
After allowing the user cron access. you could just copy the users cronfile from /var/spool/cron/crontabs on the old machine to the new machine. Saves you re-typing if you have a lot of jobs to run.
The files should be owned by the root and permissions are -r--------