<?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: capturing root executed commands in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223593#M467337</link>
    <description>Check the attachment,&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Johnson</description>
    <pubDate>Fri, 05 Feb 2010 10:06:39 GMT</pubDate>
    <dc:creator>Johnson Punniyalingam</dc:creator>
    <dc:date>2010-02-05T10:06:39Z</dc:date>
    <item>
      <title>capturing root executed commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223580#M467324</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;May i know how can we capture logs for the root executed commands?&lt;BR /&gt;Is it any way to capture.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 05 Feb 2010 04:22:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223580#M467324</guid>
      <dc:creator>S.S.</dc:creator>
      <dc:date>2010-02-05T04:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: capturing root executed commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223581#M467325</link>
      <description>cd ~root&lt;BR /&gt;ls -lart&lt;BR /&gt;there would be .history file which would be having all the command run by root.&lt;BR /&gt;&lt;BR /&gt;I suppose ur company should be having other security tools for this.&lt;BR /&gt;one is called powerbroker.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+</description>
      <pubDate>Fri, 05 Feb 2010 04:25:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223581#M467325</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2010-02-05T04:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: capturing root executed commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223582#M467326</link>
      <description>Hi S.S.,&lt;BR /&gt;&lt;BR /&gt;Apart from /.sh_history file as mentioned, may be this might also help you:&lt;BR /&gt;&lt;BR /&gt;If you are doing any activity you can capture all of your commands and their outputs as executed that you see on screen to any specific file.&lt;BR /&gt;&lt;BR /&gt;---------------------&lt;BR /&gt;#&amp;gt;script /tmp/commands&lt;BR /&gt;Script started, file is /tmp/commands&lt;BR /&gt;&lt;BR /&gt;-- &lt;BR /&gt;command1&lt;BR /&gt;command2&lt;BR /&gt;-- &lt;BR /&gt;&lt;BR /&gt;#&amp;gt;exit&lt;BR /&gt;Script done, file is /tmp/commands&lt;BR /&gt;---------------------&lt;BR /&gt;&lt;BR /&gt;So, in file /tmp/commands all you screen outputs will be captured.&lt;BR /&gt;&lt;BR /&gt;# more /tmp/commands&lt;BR /&gt;--&lt;BR /&gt;commands and outputs by you&lt;BR /&gt;--&lt;BR /&gt;&lt;BR /&gt;Regds..</description>
      <pubDate>Fri, 05 Feb 2010 04:31:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223582#M467326</guid>
      <dc:creator>R.K. #</dc:creator>
      <dc:date>2010-02-05T04:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: capturing root executed commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223583#M467327</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;My previous administrator was used to capture the root executed commands in syslog.&lt;BR /&gt;&lt;BR /&gt;May i know how we can do this?</description>
      <pubDate>Fri, 05 Feb 2010 05:14:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223583#M467327</guid>
      <dc:creator>S.S.</dc:creator>
      <dc:date>2010-02-05T05:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: capturing root executed commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223584#M467328</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;ALL root commands ???&lt;BR /&gt;&lt;BR /&gt;Really.&lt;BR /&gt;&lt;BR /&gt;Some commands like LVM are inheirtently captured in syslog, vgcfgbackup for instance. &lt;BR /&gt;&lt;BR /&gt;Can you provide an example?</description>
      <pubDate>Fri, 05 Feb 2010 06:15:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223584#M467328</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-02-05T06:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: capturing root executed commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223585#M467329</link>
      <description>&lt;!--!*#--&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;You did not specify for which version&lt;BR /&gt;of HP-UX you need it.&lt;BR /&gt;&lt;BR /&gt;HP-UX 11.31 has new Audit system and RBAC&lt;BR /&gt;extensions. So, the answer is YES.&lt;BR /&gt;You can capture logs for the root-executed&lt;BR /&gt;commands.&lt;BR /&gt;&lt;BR /&gt;For example, you can set up KEYSTROKE LOGGING.&lt;BR /&gt;&lt;BR /&gt;Perform the following steps after installing&lt;BR /&gt;the RBAC product depot:&lt;BR /&gt;&lt;BR /&gt;1. Add entries in the PAM configuration&lt;BR /&gt;file (/etc/pam.conf):&lt;BR /&gt;&lt;BR /&gt;login session optional libpam_keystroke.so.1&lt;BR /&gt;dtlogin session optional libpam_keystroke.so.1&lt;BR /&gt;sshd session optional libpam_keystroke.so.1&lt;BR /&gt;rcomds session optional libpam_keystroke.so.1&lt;BR /&gt;OTHER session optional libpam_keystroke.so.1&lt;BR /&gt;&lt;BR /&gt;This module may be configured for one or&lt;BR /&gt;more services, depending on the intended&lt;BR /&gt;logging. For more information on pam.conf&lt;BR /&gt;and the syntax of the entries, refer to&lt;BR /&gt;pam.conf(4).&lt;BR /&gt;&lt;BR /&gt;2. Enable keystroke logging in /etc/rbac/rbac.conf:&lt;BR /&gt;&lt;BR /&gt;KEY_STROKE_LOGGING = 1&lt;BR /&gt;&lt;BR /&gt;3. Create a keyfilter file under /etc/rbac&lt;BR /&gt;specifying what users to log. For more&lt;BR /&gt;information on customizing specific policies,&lt;BR /&gt;see key_filter(4m).&lt;BR /&gt;&lt;BR /&gt;Subsequent access by the targeted users will&lt;BR /&gt;cause a keystroke log file to be generated&lt;BR /&gt;and stored in the location specified in&lt;BR /&gt;/etc/rbac/rbac.conf file. Note that in the&lt;BR /&gt;event that a user has privileged access,&lt;BR /&gt;they may be able to modify these files. It is&lt;BR /&gt;recommended that modification of the files be&lt;BR /&gt;monitored (for example, by HP-UX Host IDS)&lt;BR /&gt;or that they periodically be transferred off-host.&lt;BR /&gt;&lt;BR /&gt;In short, HP-UX 11.31 can do a lot.&lt;BR /&gt;I would hope you use the latest version of HP-UX for many reasons.&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Fri, 05 Feb 2010 07:09:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223585#M467329</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2010-02-05T07:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: capturing root executed commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223586#M467330</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;My OS version is HP-UX 11.11&lt;BR /&gt;&lt;BR /&gt;Model rp844o&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 05 Feb 2010 07:33:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223586#M467330</guid>
      <dc:creator>S.S.</dc:creator>
      <dc:date>2010-02-05T07:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: capturing root executed commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223587#M467331</link>
      <description>.history or .shellname_history suppose if you are using bash shell you will find in &lt;BR /&gt;&lt;BR /&gt;.bash_history&lt;BR /&gt;&lt;BR /&gt;or simple run the history commnad on the hash prompt and if you want to see last 100 line use following&lt;BR /&gt;&lt;BR /&gt;#history -100&lt;BR /&gt;&lt;BR /&gt;but this will not 100% perfect solution because if someone is running any script or any loop it will not show you in the history &lt;BR /&gt;&lt;BR /&gt;and also please assign the points to those who came for your help here .&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Feb 2010 07:40:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223587#M467331</guid>
      <dc:creator>Jupinder Bedi</dc:creator>
      <dc:date>2010-02-05T07:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: capturing root executed commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223588#M467332</link>
      <description>if you are running "HPUX 11.11"&lt;BR /&gt;&lt;BR /&gt;you need write script which can capture "root" commands from .sh_history file, also you need increase .sh_history file length and place script under the .profile of "root"&lt;BR /&gt;&lt;BR /&gt;BTW, Check with you. do like to capture your commands, while your working ? so that you can refer back ?</description>
      <pubDate>Fri, 05 Feb 2010 07:44:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223588#M467332</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2010-02-05T07:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: capturing root executed commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223589#M467333</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Please don't do down the .sh_history rat hole.  There a couple of reasons for not doing this and going either to power broker or using a 'script' file.  &lt;BR /&gt;&lt;BR /&gt;In /root/.profile add the command script &amp;gt; file just like recommended above.  Why?  The .sh_history file is very hard to manage.  You can get the size right but it will load into vi or save from vi due to its format and you're going to want to do this some day.  Nor will and date stamps or other navigational landmarks easily write into it.&lt;BR /&gt;&lt;BR /&gt;The only issue with using 'script' is one more exit.</description>
      <pubDate>Fri, 05 Feb 2010 08:04:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223589#M467333</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-02-05T08:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: capturing root executed commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223590#M467334</link>
      <description>Sorry, typo.&lt;BR /&gt;&lt;BR /&gt;"...will NOT load into vi well or save from vi WELL due to its ..."&lt;BR /&gt;&lt;BR /&gt;So, use DATE=$(date %H%M%S) (* this is approx. to get 020310_HHMMSS *) to create an extension for &lt;BR /&gt;&lt;BR /&gt;script &amp;gt; file_name_$DATE</description>
      <pubDate>Fri, 05 Feb 2010 08:09:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223590#M467334</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-02-05T08:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: capturing root executed commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223591#M467335</link>
      <description>Hi Johnson,&lt;BR /&gt;&lt;BR /&gt;To refer back.&lt;BR /&gt;&lt;BR /&gt;Also, currently after drawing root password from manager we usually take a screenshots of what we have done and need to submit when returning the root password.&lt;BR /&gt;&lt;BR /&gt;thanks!</description>
      <pubDate>Fri, 05 Feb 2010 08:49:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223591#M467335</guid>
      <dc:creator>S.S.</dc:creator>
      <dc:date>2010-02-05T08:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: capturing root executed commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223592#M467336</link>
      <description>&amp;gt;&amp;gt;To refer back&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;This makes life easier, --&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Give you a trick, c'mon.&lt;BR /&gt;&lt;BR /&gt;Do you happen use "Putty" ? -&amp;gt;Session logging&lt;BR /&gt;please refer to attachment do give some ideas,&lt;BR /&gt;&lt;BR /&gt;This how I do , while working, because we need sent logs for review for my manager, hope this helps .:)&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Johnson&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Feb 2010 10:03:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223592#M467336</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2010-02-05T10:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: capturing root executed commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223593#M467337</link>
      <description>Check the attachment,&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Johnson</description>
      <pubDate>Fri, 05 Feb 2010 10:06:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223593#M467337</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2010-02-05T10:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: capturing root executed commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223594#M467338</link>
      <description>Thank you...:-)</description>
      <pubDate>Mon, 08 Feb 2010 05:52:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/capturing-root-executed-commands/m-p/5223594#M467338</guid>
      <dc:creator>S.S.</dc:creator>
      <dc:date>2010-02-08T05:52:07Z</dc:date>
    </item>
  </channel>
</rss>

