- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to allow a user to use cron?
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
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
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
тАО01-23-2006 12:50 AM
тАО01-23-2006 12:50 AM
How does one authorize a regular noon-root user to use cron, so he can schedule jobs?
Does it have something to do with permissions, or the group file?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2006 12:52 AM
тАО01-23-2006 12:52 AM
Re: How to allow a user to use 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."
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2006 01:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2006 01:11 AM
тАО01-23-2006 01:11 AM
Re: How to allow a user to use cron?
You will have a asccii file called cron.allow which is located under /var/adm/cron. Simply add the user to this and they will be able to created cron jobs.
Regards,
Simon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2006 01:16 AM
тАО01-23-2006 01:16 AM
Re: How to allow a user to use cron?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2006 01:20 AM
тАО01-23-2006 01:20 AM
Re: How to allow a user to use cron?
Edit /var/adm/cron/cron.allow, add your user there.
Also, take your time to assign points to the people who spent time and responded to your question.
http://forums1.itrc.hp.com/service/forums/pageList.do?userId=CA1282552&listType=unassigned&forumId=1
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2006 01:50 AM
тАО01-23-2006 01:50 AM
Re: How to allow a user to use cron?
An example from my /var/adm/cron/cron.allow
file;
baan01:/#cat /var/adm/cron/cron.allow
root
adm
uucp
rvs
baycom
ae1820
so my extra users like rvs,baycom,ae1820
can handle their own cron jobs!!!
Hope this helps you!!!
Good Luck,
Ps:Please Do not forget to submit points!
:-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2006 02:15 AM
тАО01-23-2006 02:15 AM
Re: How to allow a user to use cron?
Do I need to restart the cron process? (i.e. kill -HUP pid)
Thanks, and I will submit points.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2006 02:19 AM
тАО01-23-2006 02:19 AM
Re: How to allow a user to use cron?
No, you do not need to restart 'cron' after editting the 'cron.allow' or 'cron.deny' files.
You may also want to setup the same user's in 'at.allow' and 'at.deny' at you do for cron. It is often very convienent for a user to first test with 'at'. See the manpages for 'at(1)' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2006 07:02 PM
тАО01-23-2006 07:02 PM
Re: How to allow a user to use cron?
Edit /var/adm/cron/crontab.allow a insert new user. Example:
# cat /var/adm/cron/crontab.allow
root
user1
Next, create crontab file for "user1"
# crontab -e user1
and insert commands.
Verify,
# cat /var/spool/cron/crontabs/user1
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2006 07:08 PM
тАО01-23-2006 07:08 PM
Re: How to allow a user to use cron?
No need for restarting cron service. It will lookup those files during crontab execution only.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2006 07:16 PM
тАО01-23-2006 07:16 PM
Re: How to allow a user to use cron?
Have a look at this document, It should help you to understand about cron and at.
http://docs.hp.com/en/B2355-90164/apcs01.html
Using HP-UX > Appendix C. Scheduling Commands
Running Commands at Preset Times
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2006 08:27 PM
тАО01-23-2006 08:27 PM
Re: How to allow a user to use cron?
man 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."
HTH,
Art