<?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 Audit directory removal in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/audit-directory-removal/m-p/4476920#M362008</link>
    <description>Hello everybody.&lt;BR /&gt;&lt;BR /&gt;We have installed Oracle on an HP-UX 11.23 operating system.The system is a trusted system.&lt;BR /&gt;The last month the cdump directory in the Oracle installation directory, has been removed twice unexpectedly , once in two weeks.&lt;BR /&gt;We have recreated the directory manually.&lt;BR /&gt;&lt;BR /&gt;Auditing is not turned on in the system, in order to avoid performance issues.&lt;BR /&gt;&lt;BR /&gt;I am new to HP-UX and my question is :&lt;BR /&gt;Can i audit only the cdump directory and all the actions that modify this directory ?&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&lt;BR /&gt;</description>
    <pubDate>Tue, 11 Aug 2009 07:22:46 GMT</pubDate>
    <dc:creator>alex1982</dc:creator>
    <dc:date>2009-08-11T07:22:46Z</dc:date>
    <item>
      <title>Audit directory removal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/audit-directory-removal/m-p/4476920#M362008</link>
      <description>Hello everybody.&lt;BR /&gt;&lt;BR /&gt;We have installed Oracle on an HP-UX 11.23 operating system.The system is a trusted system.&lt;BR /&gt;The last month the cdump directory in the Oracle installation directory, has been removed twice unexpectedly , once in two weeks.&lt;BR /&gt;We have recreated the directory manually.&lt;BR /&gt;&lt;BR /&gt;Auditing is not turned on in the system, in order to avoid performance issues.&lt;BR /&gt;&lt;BR /&gt;I am new to HP-UX and my question is :&lt;BR /&gt;Can i audit only the cdump directory and all the actions that modify this directory ?&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Aug 2009 07:22:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/audit-directory-removal/m-p/4476920#M362008</guid>
      <dc:creator>alex1982</dc:creator>
      <dc:date>2009-08-11T07:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Audit directory removal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/audit-directory-removal/m-p/4476921#M362009</link>
      <description>No you can't just audit one directory...&lt;BR /&gt;&lt;BR /&gt;You can however monitor just one system call - in your case I'd suggest the rmdir system call. &lt;BR /&gt;&lt;BR /&gt;1) Determine who has access to the directories in question (i.e. who apart from root could delete the directory)&lt;BR /&gt;&lt;BR /&gt;2) Now you need to set up auditing to have minimum impact on your users...&lt;BR /&gt;&lt;BR /&gt;ensure auditing is off:&lt;BR /&gt;&lt;BR /&gt;audsys -f&lt;BR /&gt;&lt;BR /&gt;now just monitor the users we care about - let's say you've determined that only the oracle and root user have permission to remove that directory:&lt;BR /&gt;&lt;BR /&gt;audusr -D&lt;BR /&gt;&lt;BR /&gt;will disable auditing for all users, and then:&lt;BR /&gt;&lt;BR /&gt;audusr -a root -a oracle&lt;BR /&gt;&lt;BR /&gt;will add it back for those users.&lt;BR /&gt;&lt;BR /&gt;now for the system call:&lt;BR /&gt;&lt;BR /&gt;audevent -E -S -p -f&lt;BR /&gt;&lt;BR /&gt;will disable auditing for all events and system calls, and then&lt;BR /&gt;&lt;BR /&gt;audevent -P -s rmdir&lt;BR /&gt;&lt;BR /&gt;will add it back in for the rmdir system call.&lt;BR /&gt;&lt;BR /&gt;3) Now turn auditing on - you'll need to specify where to put the log - I'd suggest a filesystem with pleny of space on it... You also need to specify how big the log can grow to... I can't beleive that rmdir will get called that often on your system, so maybe a 20MB filesize will be sufficient - each audit entry in the log consumes about 100 bytes, so you can get plenty of log entries in 20MB:&lt;BR /&gt;&lt;BR /&gt;audsys -n -c /mydir/audlog20MB -s 20480&lt;BR /&gt;&lt;BR /&gt;4) You can quickly test everythings working by doing something like:&lt;BR /&gt;&lt;BR /&gt;mkdir /tmp/xyz&lt;BR /&gt;rmdir /tmp/xyz&lt;BR /&gt;&lt;BR /&gt;as one of the audited users.&lt;BR /&gt;&lt;BR /&gt;You can then see what shows up in the audit log using:&lt;BR /&gt;&lt;BR /&gt;audisp /mydir/audlog20MB &lt;BR /&gt;&lt;BR /&gt;You should see something like this:&lt;BR /&gt;&lt;BR /&gt;# audisp /mydir/audlog20MB &lt;BR /&gt;All users are selected.&lt;BR /&gt;All events are selected.&lt;BR /&gt;All ttys are selected.&lt;BR /&gt;Selecting successful &amp;amp; failed events.&lt;BR /&gt;TIME              PID E  EVENT   PPID    AID       RUID       RGID       EUID       EGID TTY&lt;BR /&gt;&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;090811 10:22:42  3264 S    137   3064      0          0          3          0          3 pts/0&lt;BR /&gt;[ Event=rmdir; User=root; Real Grp=sys; Eff.Grp=sys;  ]&lt;BR /&gt;&lt;BR /&gt;     RETURN_VALUE 1 = 0;&lt;BR /&gt;     PARAM #1 (file path) = 0 (cnode);&lt;BR /&gt;                            0x40000004 (dev);&lt;BR /&gt;                            9 (inode);&lt;BR /&gt;              (path) = /tmp/xyz&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;090811 10:23:00  3269 S    137   3064      0          0          3          0          3 pts/0&lt;BR /&gt;[ Event=rmdir; User=root; Real Grp=sys; Eff.Grp=sys;  ]&lt;BR /&gt;&lt;BR /&gt;     RETURN_VALUE 1 = 0;&lt;BR /&gt;     PARAM #1 (file path) = 0 (cnode);&lt;BR /&gt;                            0x40000004 (dev);&lt;BR /&gt;                            9 (inode);&lt;BR /&gt;              (path) = /tmp/xyz&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;&lt;BR /&gt;Now just wait for the directory to get deleted again, and then run the audisp command - from that you should be able to pick out the PID and PPID of the process doing the deletion - that may (or may not!) help you identify the root cause.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Aug 2009 08:42:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/audit-directory-removal/m-p/4476921#M362009</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2009-08-11T08:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Audit directory removal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/audit-directory-removal/m-p/4476922#M362010</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;You should take note that trusted system has been declared end of life and will not continue after HP-UX 11.31. You may wish to explore shadow password from &lt;A href="http://software.hp.com" target="_blank"&gt;http://software.hp.com&lt;/A&gt; for the password functionality and other options for system auditing.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 11 Aug 2009 09:24:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/audit-directory-removal/m-p/4476922#M362010</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-08-11T09:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Audit directory removal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/audit-directory-removal/m-p/4476923#M362011</link>
      <description>&amp;gt; You should take note that trusted system has &lt;BR /&gt;&amp;gt; been declared end of life and will not &lt;BR /&gt;&amp;gt; continue after HP-UX 11.31. You may wish to &lt;BR /&gt;&amp;gt; explore shadow password from &lt;BR /&gt;&amp;gt; &lt;A href="http://software.hp.com" target="_blank"&gt;http://software.hp.com&lt;/A&gt; for the password &lt;BR /&gt;&amp;gt; functionality and other options for system &lt;BR /&gt;auditing. &lt;BR /&gt;&lt;BR /&gt;True - but the auditing subsystem is not going away with the rest of the trusted system functionality - in fact on 11.31 it works whether you are in trusted mode or not.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Tue, 11 Aug 2009 09:30:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/audit-directory-removal/m-p/4476923#M362011</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2009-08-11T09:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Audit directory removal</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/audit-directory-removal/m-p/4476924#M362012</link>
      <description>Thank you .&lt;BR /&gt;I will try your solution now.</description>
      <pubDate>Tue, 11 Aug 2009 10:55:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/audit-directory-removal/m-p/4476924#M362012</guid>
      <dc:creator>alex1982</dc:creator>
      <dc:date>2009-08-11T10:55:03Z</dc:date>
    </item>
  </channel>
</rss>

