1833850 Members
2344 Online
110063 Solutions
New Discussion

cron for users

 
SOLVED
Go to solution
Tarek
Super Advisor

cron for users

Hi,
how can i enable some users to use the "cron"?
Thanks
7 REPLIES 7
Robin Wakefield
Honored Contributor
Solution

Re: cron for users

Put the users' names in /var/adm/cron/cron.allow

Robin.
Rainer von Bongartz
Honored Contributor

Re: cron for users

Put them in /var/adm/cron/cron.allow

Regards
rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Michael Tully
Honored Contributor

Re: cron for users

Hi,

Any user can use 'cron' if you allow them the facility of doing so. You need to add their userid to the /var/spool/cron/cron.allow file

HTH
-Michael
Anyone for a Mutiny ?
Praveen Bezawada
Respected Contributor

Re: cron for users

Put the name of user in /var/adm/cron/cron.allow

and to set the cron for the user... login in as the user and edit the crontab file of the user using
crontab -e

PRB...
Magdi KAMAL
Respected Contributor

Re: cron for users

Hi Tarek,

I confirm, so late ...

Put the users' names that you want to allow scheduling cron jobs in /var/adm/cron/cron.allow

Magdi

Philip P. Hartl
Valued Contributor

Re: cron for users

I offer this caution however, allowing others to submit jobs to be run at future times constitutes a security risk. Check with your auditors to be sure you are not violating auditing strictures. I work for a bank and would recieve a major finding should I allow this.
Don't take life so seriously; nobody gets out alive.
Thomas Yake
Occasional Advisor

Re: cron for users

P.S. make sure the users understand that their cron proccesses will have limited shells. Therefore they will need to write statements that establish a sufficient shell within their script (e.g. PATH, ORACLE_INSTANCE, ...)