- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cron.allow
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2002 12:46 PM
тАО12-05-2002 12:46 PM
some documents said that if /var/adm/cron/cron.alow exists and is empty, only root user can use cron. But I tried on my HPUX11.0 server, with an empty cron.allow file, even root user can't use cron:
# crontab -l
crontab: you are not authorized to use cron. Sorry.
who's right then?
any idea is greatly appreciated.
Gary
Solved! Go to Solution.
- Tags:
- crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2002 12:58 PM
тАО12-05-2002 12:58 PM
SolutionYou are,:>)
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.
Kind regards,
Robert-jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2002 01:25 PM
тАО12-05-2002 01:25 PM
Re: cron.allow
The command is right.
Excerpt from the man page of cron
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.
The above says that if the file exists and is empty no one can use cron.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2002 01:58 PM
тАО12-05-2002 01:58 PM
Re: cron.allow
To avoid confusion add root to cron.allow file.
We only have cron.allow to control crontabs.
Unless you want to deny specific users you do not need cron.deny file.
Hope this helps,
0leg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2002 02:18 PM
тАО12-05-2002 02:18 PM
Re: cron.allow
it really confused me when I first read that part, because it's Mr. Rehman's
thanks,
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2002 02:05 AM
тАО12-06-2002 02:05 AM
Re: cron.allow
Now, if somebody could explain the following behaviour to me, I would be grateful:
I have a cron.allow file, containing 3 users. As root, I can crontab [-l|e]
Any input would be greatly appreciated!
Francois-Xavier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2002 03:03 AM
тАО12-06-2002 03:03 AM
Re: cron.allow
Since Gary bring up the topic, need to ask you all something also. Is at.allow the same as cron.allow? Is it the same? Please explain thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2002 03:09 AM
тАО12-06-2002 03:09 AM
Re: cron.allow
man at
Users are permitted to use the at and batch commands if their user
names appear in the file /usr/lib/cron/at.allow. If that file does
not exist, users can use at and batch if their names do not appear in
the file /usr/lib/cron/at.deny. If neither file exists, only
superuser is allowed to submit jobs. If only at.deny exists but is
empty, all users can use at and batch. The allow/deny files consist
of one user name per line.
Kind regards,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2002 05:21 AM
тАО12-06-2002 05:21 AM
Re: cron.allow
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2002 06:49 AM
тАО12-06-2002 06:49 AM
Re: cron.allow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2002 08:44 AM
тАО12-06-2002 08:44 AM
Re: cron.allow
at.allow controls at jobs (one time scheduled jobs). cron.allow control cron jobs (day to day jobs).
The principle is the same.
Hope this helps,
0leg