1832864 Members
2752 Online
110048 Solutions
New Discussion

Regarding Cron

 
nandam
Frequent Advisor

Regarding Cron

Hi, could you please tell me how to give cron access to user. i applied login name in /var/spool/cron/crontab but i am geting error like this

crontab: you are not authorized to use cron. Sorry.

Could you please give me answer for this IT IS VERY URGENT

tHANKS
4 REPLIES 4
Kofi ARTHIABAH
Honored Contributor

Re: Regarding Cron

add the username to the file
/var/adm/cron/cron.allow

I like to do:

echo "username" >> /var/adm/cron/cron.allow

if they are likely to run at jobs, you might want to add them to the at.allow as well (same location)

Good luck.

Kofi
nothing wrong with me that a few lines of code cannot fix!
James R. Ferguson
Acclaimed Contributor

Re: Regarding Cron

Hi:

The manpages for 'crontab(1)' hold the answer to your question.

You need to add the user to '/var/adm/cron/cron.allow'.

You may also want to enable 'at()' use for the user, too. Correspondingly, see those manpages!

Regards!

...JRF...
nandam
Frequent Advisor

Re: Regarding Cron

Thank you very much i got answer


thanks
nandam
Jonathan Fife
Honored Contributor

Re: Regarding Cron

Hi nandam,

Please acknowledge the time people spend answering questions by assigning points to the responses in your threads.

See http://forums1.itrc.hp.com/service/forums/helptips.do?#28 for more information on points and why it is beneficial for the community to assign them.

Thanks!
Decay is inherent in all compounded things. Strive on with diligence