<?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: trace root's activity in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/trace-root-s-activity/m-p/2860850#M3010</link>
    <description>I would follow U.SivaKumar's advice with one small exception.&lt;BR /&gt;&lt;BR /&gt;i would edit the .profile and put a better entry in:&lt;BR /&gt;&lt;BR /&gt;script /tmp/`logname`.`date`.log&lt;BR /&gt;&lt;BR /&gt;this way you know who su'd to root and what date and time they did this at&lt;BR /&gt;</description>
    <pubDate>Wed, 11 Dec 2002 18:57:07 GMT</pubDate>
    <dc:creator>John Meissner</dc:creator>
    <dc:date>2002-12-11T18:57:07Z</dc:date>
    <item>
      <title>trace root's activity</title>
      <link>https://community.hpe.com/t5/operating-system-linux/trace-root-s-activity/m-p/2860847#M3007</link>
      <description>Hello, All masters,&lt;BR /&gt;&lt;BR /&gt;  I want to trace all the activities root has peformed on my Hp-ux system. How can it do this? Are there any machnism in Hpux that can record the actions taken by root? &lt;BR /&gt;&lt;BR /&gt; Thanks in advance.</description>
      <pubDate>Tue, 10 Dec 2002 08:15:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/trace-root-s-activity/m-p/2860847#M3007</guid>
      <dc:creator>Lalo_Weng</dc:creator>
      <dc:date>2002-12-10T08:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: trace root's activity</title>
      <link>https://community.hpe.com/t5/operating-system-linux/trace-root-s-activity/m-p/2860848#M3008</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Without anybody's knowledge put this entry in root's .profile file.&lt;BR /&gt;&lt;BR /&gt;script /tmp/.activ.log&lt;BR /&gt;&lt;BR /&gt;Then if next time root login whatever command he types will be logged in to the file /tmp/.activ.log which can be read online&lt;BR /&gt;by this command.&lt;BR /&gt;&lt;BR /&gt;tail -f /tmp/.activ.log&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;U.SivaKumar</description>
      <pubDate>Tue, 10 Dec 2002 10:36:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/trace-root-s-activity/m-p/2860848#M3008</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2002-12-10T10:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: trace root's activity</title>
      <link>https://community.hpe.com/t5/operating-system-linux/trace-root-s-activity/m-p/2860849#M3009</link>
      <description>Howdy,&lt;BR /&gt;if you want to have a look at what root has done recently &amp;amp; root's actions are already logged why not try: &lt;BR /&gt;$ more $HISTFILE&lt;BR /&gt;whilst logged in as root&lt;BR /&gt; &lt;BR /&gt;If you want to log what root has done how about&lt;BR /&gt;HISTFILE=/etc/security/rootlogs/log.$(date +"%y%m%d").$(logname).$$&lt;BR /&gt;&lt;BR /&gt;You will have to make the security/rootlogs dir under /etc &lt;BR /&gt;&lt;BR /&gt;If you force people to "su" to root rather than log in directly this will also tell you *who* executed the commend as the $(logname) will pick up their original id.&lt;BR /&gt;&lt;BR /&gt;If I was suspicious of what root was doing and I had the authority I would change the password before something went badly wrong.&lt;BR /&gt;&lt;BR /&gt;There is built in auditing in hp-ux (hey, I thought I was in the linux forum?) but that is probably overkill for what you want.&lt;BR /&gt;HTH&lt;BR /&gt;Ian&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Dec 2002 15:23:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/trace-root-s-activity/m-p/2860849#M3009</guid>
      <dc:creator>Ian Vaughan</dc:creator>
      <dc:date>2002-12-10T15:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: trace root's activity</title>
      <link>https://community.hpe.com/t5/operating-system-linux/trace-root-s-activity/m-p/2860850#M3010</link>
      <description>I would follow U.SivaKumar's advice with one small exception.&lt;BR /&gt;&lt;BR /&gt;i would edit the .profile and put a better entry in:&lt;BR /&gt;&lt;BR /&gt;script /tmp/`logname`.`date`.log&lt;BR /&gt;&lt;BR /&gt;this way you know who su'd to root and what date and time they did this at&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Dec 2002 18:57:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/trace-root-s-activity/m-p/2860850#M3010</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2002-12-11T18:57:07Z</dc:date>
    </item>
  </channel>
</rss>

