HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cron problems - Round 2
Operating System - HP-UX
1834645
Members
2514
Online
110069
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-2002 01:25 PM
01-23-2002 01:25 PM
This morning, the rights of many [perhaps all] of our files were whacked. The files were found to have less rights than desired. I suspect a bad cron daemon is at work. I need help tracking it down.
crontab -l is per the attachment.
From the other thread...I restored the original cron file from tape. Thus, this is the original cron problem.
crontab -l is per the attachment.
From the other thread...I restored the original cron file from tape. Thus, this is the original cron problem.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2002 01:30 PM
01-23-2002 01:30 PM
Re: cron problems - Round 2
Not exactly sure what your asking..if perms have been changed, and you think it was from cron, check all the cron scripts for chmod.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2002 01:34 PM
01-23-2002 01:34 PM
Solution
Hi Bill,
Do any of the /u2/crons jobs change permissions on files? A common problem is for a script to cd to a directory that doesn't exist. If you don't verify the cd command actually worked then you will get unexpected results from your chmod (or worse, rm).
Another case is when using a variable as the argument to a cd command. If the variable was null then you would be cd'ing to the home dir. Again, you need to verify you actually cd'ed to the dir you meant to.
Also is a good reason for changing root's home dir to /root.
Darrell
Do any of the /u2/crons jobs change permissions on files? A common problem is for a script to cd to a directory that doesn't exist. If you don't verify the cd command actually worked then you will get unexpected results from your chmod (or worse, rm).
Another case is when using a variable as the argument to a cd command. If the variable was null then you would be cd'ing to the home dir. Again, you need to verify you actually cd'ed to the dir you meant to.
Also is a good reason for changing root's home dir to /root.
Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2002 01:57 PM
01-23-2002 01:57 PM
Re: cron problems - Round 2
Hi Bill:
Darrell's point is very well taken!
To that end, this is often convenient:
# cd /mydir && (echo good!;date;echo good!)
If the cd is successful, you execute the commands in the list, otherwise you don't!
Regards!
...JRF...
Darrell's point is very well taken!
To that end, this is often convenient:
# cd /mydir && (echo good!;date;echo good!)
If the cd is successful, you execute the commands in the list, otherwise you don't!
Regards!
...JRF...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP