- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Edit crontab rights for a user
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
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
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-18-2015 11:29 PM
01-18-2015 11:29 PM
Hi ,
Is it possible that i can give rights for a user cron to be running in it .
But he must not be able to edit or add any new cron entries ?
O.S hpux 11iv3
Solved! Go to Solution.
- Tags:
- crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2015 02:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2015 10:10 AM
01-21-2015 10:10 AM
Re: Edit Cron rights for a user
If you just want a cron job to be run to execute a script or program under a given user ID, without allowing them to add or remove from cron, then you should set up the job under root and use "su useID -c script-or-command-to-execute". The root user owns the cron job and is the only one that can add, change, or delete the job. The job will be executed under the name user ID.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2015 10:19 PM
01-21-2015 10:19 PM
Re: Edit crontab rights for a user
Thanks Dennis ,
Tested it on 11.23 and 11.31 , it runs fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2015 12:18 AM
01-22-2015 12:18 AM
Re: Edit Cron rights for a user
>The job will be executed under the name user ID.
Hmm, I would think the job runs under root but switches to useID, so the cron mail would go to root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2015 03:28 AM
01-22-2015 03:28 AM
Re: Edit Cron rights for a user
Yes it would. That may or not be an issue, depending on their requirements. A well written job will included logging and email alerts/notification aimed at the appropriate individuals.
Cron doesn't give you much in the way of features. If your having to enable and then disable a cron user every time they need to add or remove a job, then you might as well own the process and provide a good script wrapped for the applications people to use. Thats what I've always done, even when a good cross platform job control system was avalable.