1748240 Members
3816 Online
108759 Solutions
New Discussion юеВ

Re: Cron job

 
Indrajit_1
Valued Contributor

Cron job

Hello All;

How do i allow an user to scheduled crob job. He should able to execute crontab -e and crontab -l . Need help

Cheers
indrajit
Never Ever Give Up
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: Cron job

From the man page for crontab:

"You can execute crontab if your name appears in the file /usr/lib/cron/cron.allow. If that file does not exist, you can use crontab if your name does not appear in the file /usr/lib/cron/cron.deny. If only cron.deny exists and is empty, all users can use crontab. If neither file exists, only the root user can use crontab. The allow/deny files consist of one user name per line."


Pete

Pete
baiju_3
Esteemed Contributor

Re: Cron job

Hi ,

/var/adm/cron/cron.allow
and
/var/adm/cron/cron.deny

Regards ..BL.
Good things Just Got better (Plz,not stolen from advertisement -:) )
Sivakumar TS
Honored Contributor

Re: Cron job


Hi,

the users listed in the file --

/usr/lib/cron/cron.allow

or

Alternatively, if the user name does not exist in the file ---

/usr/lib/cron/cron.deny

the the user can add/remove cron jobs.


Regards,

Siva.
Nothing is Impossible !
Sivakumar TS
Honored Contributor

Re: Cron job

If an empty cron.deny is present then every users can use crontab.

BUT, If both files are not present then only the root user can use crontab.

Regards,

Siva.
Nothing is Impossible !
Indrajit_1
Valued Contributor

Re: Cron job

Hi All;

Thanks a lot.

Regards
Indrajit
Never Ever Give Up