- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- script help - removing files
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
08-04-2002 08:32 PM
08-04-2002 08:32 PM
erase.imd2[2]: : Execute permission denied
erase.imd2[15]: : Execute permission denied
erase.imd2[2]: : Execute permission denied
erase.imd2[15]: : Execute permission denied
Why are these messages appearing?
the job erase.imd2 has perms= 777
the files to be deleted are perms=666
(should I change perm for files to be deleted to 766?)
op system=hp ux 11.00
machine d390
script file attached.
Can anyone help here...thanks
Maria.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2002 08:53 PM
08-04-2002 08:53 PM
Re: script help - removing files
You need to have execute permissions on the DIRECTORIES which you "cd" to.
Hope this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2002 09:35 PM
08-04-2002 09:35 PM
Re: script help - removing files
thanks for your reply....all the directories have execute permission on them.
Maria.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2002 09:44 PM
08-04-2002 09:44 PM
Re: script help - removing files
Does this problem occur only when you run the job thru cron? If so, it may be an environment issue or redirection issue.
Try doing a "set -x" at the top of the script to find out exactly which line of the script is cribbing.
-deepak.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2002 10:02 PM
08-04-2002 10:02 PM
Re: script help - removing files
Another thing. Doing a 'cd' before the find&rm is generally dangerous. Should the cd fail the find will be done form the users HOME directory.
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2002 12:24 AM
08-05-2002 12:24 AM
SolutionAfter the find perform an ls -l on the file and send this to the log file.
Then run an rm on this file and check the error code after the rm.
Write the error code to the log.
This way if any file fails to be removed because of permissions you can check easily.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2002 11:55 PM
08-05-2002 11:55 PM
Re: script help - removing files
Maybe i'm asking a very silly question.
Does the account used to run the script within cron have WRITE permissions on the directories ?
If not then the permission to delete files in that directory is denied. ( Thats most often what i forget to check )
Reinhard