<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Folder getting removed in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441739#M207409</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Setup: N4000/HP-UX 11.00/Oracle 9i&lt;BR /&gt;&lt;BR /&gt;I have a folder /opt/oracle/xxx/admin/yyy/tiger.&lt;BR /&gt;&lt;BR /&gt;The folder tiger is getting removed quite often and we have to recreate it. &lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Is there a way to trace who (which user or any cronjob) is removing this folder?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Sanjiv</description>
    <pubDate>Sun, 12 Dec 2004 20:50:08 GMT</pubDate>
    <dc:creator>Sanjiv Sharma_1</dc:creator>
    <dc:date>2004-12-12T20:50:08Z</dc:date>
    <item>
      <title>Folder getting removed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441739#M207409</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Setup: N4000/HP-UX 11.00/Oracle 9i&lt;BR /&gt;&lt;BR /&gt;I have a folder /opt/oracle/xxx/admin/yyy/tiger.&lt;BR /&gt;&lt;BR /&gt;The folder tiger is getting removed quite often and we have to recreate it. &lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Is there a way to trace who (which user or any cronjob) is removing this folder?&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Sanjiv</description>
      <pubDate>Sun, 12 Dec 2004 20:50:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441739#M207409</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2004-12-12T20:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Folder getting removed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441740#M207410</link>
      <description>Linux has a command called chattr&lt;BR /&gt;&lt;BR /&gt;chattr +i /opt/oracle/xxx/admin/yyy/tiger&lt;BR /&gt;&lt;BR /&gt;Nobody even root is going to remove it.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Beyond that either the user is doing it or root is via a cron job.&lt;BR /&gt;&lt;BR /&gt;If you have cron jobs that clean up folders/files more than a certain number of days old this is a candidate for removal.&lt;BR /&gt;&lt;BR /&gt;Its got to be cron and its probably a find +mtime job doing it.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;see /var/adm/cron/log&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 12 Dec 2004 21:08:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441740#M207410</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-12-12T21:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Folder getting removed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441741#M207411</link>
      <description>SEP,&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 12 Dec 2004 22:14:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441741#M207411</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2004-12-12T22:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Folder getting removed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441742#M207412</link>
      <description>Hi Sanjiv,&lt;BR /&gt;You must check the permissions of all the sub directories in the path.&lt;BR /&gt;What is the permission of your yyy directory ?&lt;BR /&gt;To isolate the problem, put sticky bit in the tiger directory.&lt;BR /&gt;chmod 1744 (whatever permission you want for others) /opt/oracle/xxx/admin/yyy/tiger&lt;BR /&gt;and monitor.&lt;BR /&gt;&lt;BR /&gt;This will prevent removing the files by others under tiger directory.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Animesh</description>
      <pubDate>Mon, 13 Dec 2004 02:02:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441742#M207412</guid>
      <dc:creator>Animesh Chakraborty</dc:creator>
      <dc:date>2004-12-13T02:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Folder getting removed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441743#M207413</link>
      <description>Some inputs. The folder is getting removed at about 00:22 am midnight everyday.&lt;BR /&gt;&lt;BR /&gt;I am trying to figure out the cronjob which may be responsible for this.</description>
      <pubDate>Tue, 14 Dec 2004 00:32:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441743#M207413</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2004-12-14T00:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Folder getting removed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441744#M207414</link>
      <description>Why don't you trace the rmdir command with a wrapper? Look at the following thread for Bill's wrapper scripts.  You can leverage off of what he has supplied.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=113459" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=113459&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Dec 2004 07:47:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441744#M207414</guid>
      <dc:creator>Cheryl Griffin</dc:creator>
      <dc:date>2004-12-14T07:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Folder getting removed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441745#M207415</link>
      <description>Sanjiv,&lt;BR /&gt;&lt;BR /&gt;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'.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mark&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Dec 2004 09:45:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441745#M207415</guid>
      <dc:creator>Mark Ellzey</dc:creator>
      <dc:date>2004-12-14T09:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Folder getting removed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441746#M207416</link>
      <description>As far as restricting a directory from getting removed, in Unix, the ability to remove a file (or a directory which is itself a file) has NOTHING to do with permissions of the file or directory. A file or directory with 000 permissions can be removed by anyone if the file/directory is under a directory with 777 permissions. So to restrict the removal of this directory, change the permissions of the parent directory. Since the directory is always removed at the same time, it is very likely a cron (or possible a repetitive at command or even a script that sleeps for 24 hours.</description>
      <pubDate>Tue, 14 Dec 2004 10:29:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441746#M207416</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-12-14T10:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Folder getting removed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441747#M207417</link>
      <description>Is there any entry in the syslog.log for any user ?&lt;BR /&gt;&lt;BR /&gt;Check also with the command "last", and check the logs for any user, entering at those hours..&lt;BR /&gt;&lt;BR /&gt;  Massimo&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Dec 2004 11:31:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441747#M207417</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2004-12-14T11:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Folder getting removed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441748#M207418</link>
      <description>Sanjiv,&lt;BR /&gt; To add to what others have said...&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Happy hunting.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;dl</description>
      <pubDate>Tue, 14 Dec 2004 17:36:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/folder-getting-removed/m-p/3441748#M207418</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2004-12-14T17:36:54Z</dc:date>
    </item>
  </channel>
</rss>

