Operating System - HP-UX
1830735 Members
1842 Online
110015 Solutions
New Discussion

not authorized for cron use even as admin...

 
Ross Hansen
Occasional Advisor

not authorized for cron use even as admin...

I need to add a cron entry...
This is on a D-Class running 11.0 with SSH.
using commands such as cron, at or crontab produces the message:

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

This happens if I'm logged in as adm, or as a user. Any ideas as to why I don't have this authorization? I have looked at group privelages in SAM and they look just fine..

Ross
5 REPLIES 5
Uday_S_Ankolekar
Honored Contributor

Re: not authorized for cron use even as admin...

Check if /usr/lib/cron/cron.allow file has usernames to run cron jobs.

cron.allow and cron.deny are the two files gives access/deny to cron jobs

-USA...
Good Luck..
Kent Ostby
Honored Contributor

Re: not authorized for cron use even as admin...

If there exists a cron.allow file and it is empty then noone will be able to run cron jobs.

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Robert-Jan Goossens
Honored Contributor

Re: not authorized for cron use even as admin...

Hi Ross,

Could you check the files /var/adm/cron/cron.allow and /var/adm/cron/cron.deny and check if the user has denied or allowed access for cron use.

Robert-Jan
Steven E. Protter
Exalted Contributor

Re: not authorized for cron use even as admin...

If you have recently converted to a trusted system you could be getting messages concerning audit files not created.

If this is so, searching for the specific error message will fetch an itrc solution.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
f. halili
Trusted Contributor

Re: not authorized for cron use even as admin...

Users are permitted to use crontab if their names appear in the file /usr/lib/cron/cron.allow.

If that file does not exist, the file
/usr/lib/cron/cron.deny is checked to determine if the user should be
denied access to crontab.

If neither file exists, only root is
allowed to submit a job.

If only cron.deny exists and is empty,
global usage is permitted.

The allow/deny files consist of one user
name per line.
derekh