<?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 Re: System call to flush or null a file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6139069#M484805</link>
    <description>&lt;P&gt;Yes, the audlog20MB will be a binary logfile that can only be read using a tool like audisp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are logging only root and oracle users, then:&lt;/P&gt;&lt;PRE&gt;audisp -e delete -u oracle /mydir/audlog20MB&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;should display all file removals done by user "oracle".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Flushing a file is a little bit more tricky, since it is essentially just opening a file for writing, with the O_TRUNC option.&lt;/P&gt;&lt;P&gt;So you would have to run something like:&lt;/P&gt;&lt;PRE&gt;audisp -e open -u oracle /mydir/audlog20MB&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and then use grep or similar to find only the interesting events from the output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately I don't have an example of 11.23 audisp output available to me (my test server is not in Trusted mode and does not have the Standard Mode Security Extensions installed). So I cannot design a suitable filter command for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2013 13:26:45 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2013-07-18T13:26:45Z</dc:date>
    <item>
      <title>System call to flush or null a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6057531#M484063</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the system call from unix end to flush or nullify a file.&lt;/P&gt;&lt;P&gt;am thinking of starting auditing of my hpux boxxes 11.23 , &amp;nbsp;wherein some major system calls to be monitored for some users.&lt;/P&gt;&lt;P&gt;like root oracle , application user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what should i use "audevent -P -s ????" &amp;nbsp;here to catch hold of someone trying to flush a file &amp;nbsp;or flushed a file .&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2013 08:20:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6057531#M484063</guid>
      <dc:creator>coollllllllllll</dc:creator>
      <dc:date>2013-05-08T08:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: System call to flush or null a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6057809#M484065</link>
      <description>&lt;P&gt;To catch trying to reset the EOF of a file, you need to look for open with O_TRUNC.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2013 09:54:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6057809#M484065</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-05-08T09:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: System call to flush or null a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6058197#M484075</link>
      <description>&lt;P&gt;Hi Dennis ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Also i have observed that "rm " is not getting captured via auditing &amp;nbsp;i.e audevent &amp;nbsp;is there any way i can track it ???&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2013 12:42:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6058197#M484075</guid>
      <dc:creator>coollllllllllll</dc:creator>
      <dc:date>2013-05-08T12:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: System call to flush or null a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6059851#M484085</link>
      <description>&lt;P&gt;&amp;gt;I have observed that "rm" is not getting captured&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rm is an unlink(2).&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2013 20:03:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6059851#M484085</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-05-08T20:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: System call to flush or null a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6061727#M484094</link>
      <description>&lt;P&gt;Hi Dennis ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can i have auditing enabled only for some specific commands&amp;nbsp; and for some specific users ONLY like ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rm&lt;/P&gt;&lt;P&gt;rm -rf&lt;/P&gt;&lt;P&gt;someone flushing&amp;nbsp; a file&lt;/P&gt;&lt;P&gt;someone renaming a file&lt;/P&gt;&lt;P&gt;someone copying a file&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2013 10:03:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6061727#M484094</guid>
      <dc:creator>coollllllllllll</dc:creator>
      <dc:date>2013-05-09T10:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: System call to flush or null a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6061873#M484095</link>
      <description>&lt;P&gt;&amp;gt;Can I have auditing enabled only for some specific commands?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only if you log execution of that command.&amp;nbsp; I.e. open that executable.&lt;/P&gt;&lt;P&gt;Or there is a system call that the command does.&lt;/P&gt;&lt;P&gt;I assume if you have auditing turned on, you can filter for specific users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;someone renaming a file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a rename.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;someone copying a file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is some opening that file.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2013 05:55:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6061873#M484095</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-05-14T05:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: System call to flush or null a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6066729#M484225</link>
      <description>&lt;P&gt;Hi Dennis ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didnt get it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only if you log execution of that command, open that executable.&lt;/P&gt;&lt;P&gt;Or there is a system that the command does.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2013 05:38:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6066729#M484225</guid>
      <dc:creator>coollllllllllll</dc:creator>
      <dc:date>2013-05-14T05:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: System call to flush or null a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6066741#M484226</link>
      <description>&lt;P&gt;&amp;gt;I didn't get it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've updated the post and fixed a few missing words.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2013 05:56:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6066741#M484226</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-05-14T05:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: System call to flush or null a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6137347#M484776</link>
      <description>&lt;P&gt;Hi Matti ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me here with your inputs.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2013 08:01:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6137347#M484776</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2013-07-17T08:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: System call to flush or null a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6137375#M484782</link>
      <description>&lt;P&gt;&amp;gt;Can you please help me here with your inputs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's your question?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2013 08:30:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6137375#M484782</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2013-07-17T08:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: System call to flush or null a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6137527#M484784</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Can i have auditing enabled only for &amp;nbsp;some specific users ONLY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Able to rotate those log files say after one day ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2013 11:04:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6137527#M484784</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2013-07-17T11:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: System call to flush or null a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6137765#M484788</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;gt; Can i have auditing enabled only for &amp;nbsp;some specific users ONLY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes. Please see "man audusr" on your system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;gt; Able to rotate those log files say after one day ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;You should write a script that first uses "audsys -c some_new_file" to switch the audit log to a new file, then your script can do whatever you want with the old audit log file.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2013 13:55:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6137765#M484788</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2013-07-17T13:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: System call to flush or null a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6139005#M484803</link>
      <description>&lt;P&gt;Hi Matti ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am trying the below steps ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;audsys -f&lt;/P&gt;&lt;P&gt;audusr -D&lt;/P&gt;&lt;P&gt;will disable auditing for all users, and then:&lt;/P&gt;&lt;P&gt;audusr -a root -a oracle&lt;/P&gt;&lt;P&gt;will add it back for those users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then&amp;nbsp;audsys -n -c /mydir/audlog20MB -s 20480&lt;/P&gt;&lt;P&gt;which is creating 20MB file with lots of junk , not able to understand anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using&amp;nbsp;audisp /mydir/audlog20MB &amp;nbsp;to analyse this logs , but no success .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help us to trace any file removal , flush activity being carried out for a particualr user say oracle .&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2013 12:05:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6139005#M484803</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2013-07-18T12:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: System call to flush or null a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6139069#M484805</link>
      <description>&lt;P&gt;Yes, the audlog20MB will be a binary logfile that can only be read using a tool like audisp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are logging only root and oracle users, then:&lt;/P&gt;&lt;PRE&gt;audisp -e delete -u oracle /mydir/audlog20MB&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;should display all file removals done by user "oracle".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Flushing a file is a little bit more tricky, since it is essentially just opening a file for writing, with the O_TRUNC option.&lt;/P&gt;&lt;P&gt;So you would have to run something like:&lt;/P&gt;&lt;PRE&gt;audisp -e open -u oracle /mydir/audlog20MB&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and then use grep or similar to find only the interesting events from the output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately I don't have an example of 11.23 audisp output available to me (my test server is not in Trusted mode and does not have the Standard Mode Security Extensions installed). So I cannot design a suitable filter command for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2013 13:26:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6139069#M484805</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2013-07-18T13:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: System call to flush or null a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6139929#M484810</link>
      <description>&lt;P&gt;Hi Matti ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to keep a record of all suspicios activities carried out in my box.&lt;/P&gt;&lt;P&gt;All commands ran by a user in his/her shell&lt;/P&gt;&lt;P&gt;We are using history variable in /etc/profile .&lt;/P&gt;&lt;P&gt;But as Dennis said we cannot alter history settings .&lt;/P&gt;&lt;P&gt;Do we have any other alternate solution to this auditing problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2013 05:23:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/system-call-to-flush-or-null-a-file/m-p/6139929#M484810</guid>
      <dc:creator>chindi</dc:creator>
      <dc:date>2013-07-19T05:23:38Z</dc:date>
    </item>
  </channel>
</rss>

