- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: crontab owner and permission
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
тАО06-11-2003 09:45 AM
тАО06-11-2003 09:45 AM
I have a HP-UX 11.11
I have two question regarding the file in the /var/spool/cron/crontabs/ directory.
1. Who should the owner be of the files because all of the files has root as the owner?
2. What should the permission be? The current permission for the files are r-- --- --- ?
I attached a file of the output.
I would appreciate your feedback/advises.
Regards.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2003 09:52 AM
тАО06-11-2003 09:52 AM
Solutionroot is the owner of all the files in /var/spool/cron/crontabs, and r-------- is fine.
Users (if allowed) must use crontab -e to change the contents, and you can't edit the files directly. Read to owner is sufficient.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2003 09:52 AM
тАО06-11-2003 09:52 AM
Re: crontab owner and permission
1) root SHOULD be the owner, BUT the group ownership should be the primary group of the user who "owns" the cron entry.
2) 400 or r-------- IS the proper permissions.
This works because /usr/bin/crontab is an SUID binary. The perms keep unauthorized users from manually editing the file.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2003 09:53 AM
тАО06-11-2003 09:53 AM
Re: crontab owner and permission
1. The owner of the file should be root, the group should be the primary group of the "owner" of the crontab.
2. The permissions on the files should all be 400, readable only by root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2003 09:53 AM
тАО06-11-2003 09:53 AM
Re: crontab owner and permission
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2003 09:55 AM
тАО06-11-2003 09:55 AM
Re: crontab owner and permission
Elena.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2003 09:55 AM
тАО06-11-2003 09:55 AM
Re: crontab owner and permission
1) Root will be the owner. But your user should be included in the "group" specified for the crontab file.
2) The permission (r------) is okay too since it's a security reason. The SUID and Group ID comes in picture when you actally access the file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2003 09:56 AM
тАО06-11-2003 09:56 AM
Re: crontab owner and permission
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2003 10:23 AM
тАО06-11-2003 10:23 AM
Re: crontab owner and permission
Do not change anything. They are the way they are supposed to be.
Regards,
DR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2003 10:36 AM
тАО06-11-2003 10:36 AM
Re: crontab owner and permission
This is correct. r-- --- --- is the correct permition of this file and root MUST be the owner of this.
Regards, Leandro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2003 10:49 AM
тАО06-11-2003 10:49 AM
Re: crontab owner and permission
You permitions and owner looks like mine
so it's Ok and should work!
Do you have problem with the cron ?
Check if it's running, you also have verbs
mode that will give you more information.
You can also check syslog
Caesar