- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Folder getting removed
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
Forums
Discussions
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
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
12-12-2004 12:50 PM
12-12-2004 12:50 PM
Setup: N4000/HP-UX 11.00/Oracle 9i
I have a folder /opt/oracle/xxx/admin/yyy/tiger.
The folder tiger is getting removed quite often and we have to recreate it.
Only xxx user has write permission to the tiger folder. But xxx doesn't seems to run any cronjob or command to remove it. No information found in the .sh_history of xxx regarding the removal of tiger.
Is there a way to trace who (which user or any cronjob) is removing this folder?
Thank you,
Sanjiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2004 01:08 PM
12-12-2004 01:08 PM
Re: Folder getting removed
chattr +i /opt/oracle/xxx/admin/yyy/tiger
Nobody even root is going to remove it.
Might want to look into finding the source and compiling chattr on hpux. Or there may be an equivalent command that I don't know.
Beyond that either the user is doing it or root is via a cron job.
If you have cron jobs that clean up folders/files more than a certain number of days old this is a candidate for removal.
Its got to be cron and its probably a find +mtime job doing it.
All cron jobs have entries in the cron logs. If you could ascertain the time it happened, you can limit the amount of cron log entries you need to read.
see /var/adm/cron/log
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2004 02:14 PM
12-12-2004 02:14 PM
Re: Folder getting removed
I do have checked the /var/adm/cron/log but didn't find any cronjob which could have removed the folder /opt/oracle/xxx/admin/yyy/tiger.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2004 06:02 PM
12-12-2004 06:02 PM
SolutionYou must check the permissions of all the sub directories in the path.
What is the permission of your yyy directory ?
To isolate the problem, put sticky bit in the tiger directory.
chmod 1744 (whatever permission you want for others) /opt/oracle/xxx/admin/yyy/tiger
and monitor.
This will prevent removing the files by others under tiger directory.
Thanks
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 04:32 PM
12-13-2004 04:32 PM
Re: Folder getting removed
I am trying to figure out the cronjob which may be responsible for this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 11:47 PM
12-13-2004 11:47 PM
Re: Folder getting removed
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=113459
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 01:45 AM
12-14-2004 01:45 AM
Re: Folder getting removed
As Cheryl says, wrap up the rmdir command in a shell script. You may also want to do the same for the rm command, as whomever is doing the removing could be using 'rm -r', rather than 'rmdir'.
Regards,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 02:29 AM
12-14-2004 02:29 AM
Re: Folder getting removed
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 03:31 AM
12-14-2004 03:31 AM
Re: Folder getting removed
Check also with the command "last", and check the logs for any user, entering at those hours..
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 09:36 AM
12-14-2004 09:36 AM
Re: Folder getting removed
To add to what others have said...
We have on occasion found files removed by a third party application. This would, of course, mean you would have to have a third party application accessing this file.
Happy hunting.
Regards,
dl