Operating System - HP-UX
1830898 Members
3354 Online
110017 Solutions
New Discussion

Re: allowing non-root user to crontab

 
so.nimda
Super Advisor

allowing non-root user to crontab

Hi,

I would like to schedule a cron job using a non-root user but when I tried to do a "crontab -l", after doing an "su - ", the error "crontab: you are not authorized to use cron. Sorry." occurred.

How can I grant the non-root user ID access to do "crontab -l" & "crontab -e"?

Thanks in advance :)
4 REPLIES 4
Kevin Wright
Honored Contributor

Re: allowing non-root user to crontab

cron.allow and cron.deny files.
Albert_31
Trusted Contributor

Re: allowing non-root user to crontab

Hello Rancid,

You need to authorize the user to access crontab. You can achieve it by two ways

a) sam -r (select the user and then enable process management)
or

b) /var/adm/cron/cron.allow file

regards

Albert
so.nimda
Super Advisor

Re: allowing non-root user to crontab

Hi Kevin & Albert,

Thanks for you replies.

Managed to amend the cron.allow file to include the user but now when I tried to do a "crontab -l", I get this error :

"crontab: can't open your crontab file."

What else should I check?

Thanks !
so.nimda
Super Advisor

Re: allowing non-root user to crontab

The solutions were provided in the replies.