- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: crontab problem
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
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
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
10-28-2002 07:38 PM
10-28-2002 07:38 PM
crontab problem
eg.
before change
-r--r--r-- 1 usera usr 1396 Oct 28 11:54 usera
after change
-r???------ 1 usera usr 1396 Oct 28 11:54 usera
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 07:50 PM
10-28-2002 07:50 PM
Re: crontab problem
By default when a cron file is created or modified by submission, (crontab -e, crontab filename) the file has its ownership as user name primary group name. The permissions by default are created as 400.
I am not sure why you want all users to view any crontab file other than their own.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 07:58 PM
10-28-2002 07:58 PM
Re: crontab problem
cos we only allow one user to modify the cronjob and this is a share a/c , so a group of member need to read it, can suggest how to solve it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 07:58 PM
10-28-2002 07:58 PM
Re: crontab problem
the default file permissions on crontabs are 400 only. no need to change, they should be readable only by owner.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 08:03 PM
10-28-2002 08:03 PM
Re: crontab problem
There is no need to change them
I am not sure how did you have 444 before the change.
400 are the right permissions
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 08:12 PM
10-28-2002 08:12 PM
Re: crontab problem
It is useful to set the permission as 444 after modification , can suggest how to solve it? Thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 08:39 PM
10-28-2002 08:39 PM
Re: crontab problem
You said the owner is a shared account so every one using this account can view the cronjob file, right ?
If you really want to set the permission to 444, I think you should write a script executed by root to change it every 1 minute or longer !
Regards,
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2002 09:37 PM
10-28-2002 09:37 PM
Re: crontab problem
First is to run a script from cron that changes the ownership of the crontab files regularly, but not every minute, 10 minutes should be sufficient. The second would be to utilise the shared account from a tool such as 'sudo' so that the crontab file could be read by the individuals required.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2002 01:05 AM
10-29-2002 01:05 AM
Re: crontab problem
Two files are used to allow/deny access to the cron daemon for ordinary system users. these files are /var/adm/cron/cron.allow and /var/adm/cron/cron.deny. If neither of these files are present, only root can access cron. If both of these files are present, the precedence goes to the cron.allow file. All users listed in this file are allowed to use cron. If cron.allow exists but is empty, only root can use cron. If only corn.deny exists, all users except those listed in this file are allowed to use cron.
Take note that when cron.allow does not exist and cron.deny exists but is empty, then all users of the system have access to cron.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2002 01:56 AM
11-05-2002 01:56 AM
Re: crontab problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2002 03:58 AM
11-05-2002 03:58 AM
Re: crontab problem
Just how disrespectful and ungrateful can you be? IN SIX MONTHS? YOU have got to be KIDDING ME!
This member has assigned points to 190 of 474 responses to his/her questions.
Read this:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x376efd3f91d3d5118ff40090279cd0f9,00.html
then find your previous questions here:
http://forums.itrc.hp.com/cm/TopSolutions/1,,CA759973!1!questions,00.html
live free or die
harry