- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Cron only working for root
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
тАО03-08-2001 09:01 PM
тАО03-08-2001 09:01 PM
Cron only working for root
I am having a situation where the cron jobs for root are working, however, the cron files for the other users are failing.
Would anyone know, why would all the cron jobs work perfectly for a long time, then all of a sudden only the root cron file works. This is a very strange occurance. I have checked all the permissions and scripts. This box is a replica to another production box, yet the other works perfectly.
All cron users are in the cron.allow file. It can't be the individualy script, because there are mulitple scripts in the users cron file, and they all fail. So there must be something about the user, which cron doesn't like.
In /var/adm/cron/log, next to each script from the cron file in question is a entry which states rc=1. Please assist with any help whatsoever??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2001 09:19 PM
тАО03-08-2001 09:19 PM
Re: Cron only working for root
You can check/do the following.
1.stop/start cron.
2.check if the FIFO pipe exist for cron and the directories /var/spool/cron and /var/adm/cron exists.
You can try running the scripts from command line as the user to see if they work o.k .This will confirm if the problem is related to permission or with cron
Karthik...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2001 05:49 PM
тАО03-10-2001 05:49 PM
Re: Cron only working for root
As stated in the previous reply I would suggest running the scripts independent of cron.
You should check the permissions for file/directories etc if they might have changed, and your scripts might be failing access.
Goodluck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2001 12:38 AM
тАО03-12-2001 12:38 AM
Re: Cron only working for root
which contains the names of the
users (one per line) who are allowed
to run cron jobs.
Similarly, /var/adm/cron/at.allow gives
permissions to submit jobs via "at"
or "batch".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2001 07:24 AM
тАО03-12-2001 07:24 AM
Re: Cron only working for root
Since the user stated that the users had entries in the cron.allow file, this is not the problem.
Look for a few things....
1. make sure cron is running (duh)
2. make sure that the crontabs files for the users are owned by the users! These files should be in "/var/spool/cron/crontabs" If root for example modified a users crontab file with crontab -e, then root now owns the files. Since the user's ID must run the job, they must own their crontab file!
3. Check permissions on the crontabs files to make sure the user can read/write, group read, world read or none.
4. Look at the scripts being called by cron and the directories they live in to make sure the user can access them.
Regards,
Shannon