<?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 User login; commands executed in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/audit-user-login-commands-executed/m-p/3859725#M276550</link>
    <description>&lt;!--!*#--&gt; am looking for some very good suggestions to log activity that occurs &lt;BR /&gt;after individual login to UNIX. Scenario: &lt;BR /&gt;&lt;BR /&gt;1. Log all the commands executed by the user after user login into the &lt;BR /&gt;UNIX account. &lt;BR /&gt;2. Also, if after login user "su" to other login, log all the commands &lt;BR /&gt;executed in that "su" login. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What I know is that this could be done by "scripts", but, we don't want &lt;BR /&gt;to use scripts because: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1. User can modify the files as it's accessible by him. &lt;BR /&gt;2. Also, because it could be easily turned off. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is there any other better way ? I looked at syslog, sulog etc, but none &lt;BR /&gt;of them gives me what I need. sulog just tells who logged in from which &lt;BR /&gt;IP. &lt;BR /&gt;&lt;BR /&gt;UNIX being so powerful and profusion of utilities on it would have &lt;BR /&gt;something in store that suits my requirement. &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 08 Sep 2006 19:47:31 GMT</pubDate>
    <dc:creator>MohitAnchlia</dc:creator>
    <dc:date>2006-09-08T19:47:31Z</dc:date>
    <item>
      <title>Audit User login; commands executed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/audit-user-login-commands-executed/m-p/3859725#M276550</link>
      <description>&lt;!--!*#--&gt; am looking for some very good suggestions to log activity that occurs &lt;BR /&gt;after individual login to UNIX. Scenario: &lt;BR /&gt;&lt;BR /&gt;1. Log all the commands executed by the user after user login into the &lt;BR /&gt;UNIX account. &lt;BR /&gt;2. Also, if after login user "su" to other login, log all the commands &lt;BR /&gt;executed in that "su" login. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What I know is that this could be done by "scripts", but, we don't want &lt;BR /&gt;to use scripts because: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1. User can modify the files as it's accessible by him. &lt;BR /&gt;2. Also, because it could be easily turned off. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is there any other better way ? I looked at syslog, sulog etc, but none &lt;BR /&gt;of them gives me what I need. sulog just tells who logged in from which &lt;BR /&gt;IP. &lt;BR /&gt;&lt;BR /&gt;UNIX being so powerful and profusion of utilities on it would have &lt;BR /&gt;something in store that suits my requirement. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Sep 2006 19:47:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/audit-user-login-commands-executed/m-p/3859725#M276550</guid>
      <dc:creator>MohitAnchlia</dc:creator>
      <dc:date>2006-09-08T19:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Audit User login; commands executed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/audit-user-login-commands-executed/m-p/3859726#M276551</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The best way to accomplish this is to convert to a trusted system.  If this is not possible, make sure that $HISTFILE is set for the user, and than $HISTSIZE is a sufficiently large value.&lt;BR /&gt;&lt;BR /&gt;You may also want to consider a 'sudo' approach to the user's history file so that he/she does not have direct write access to it.  Routine archiving of ~user/$HISTFILE would also be a good idea.&lt;BR /&gt;&lt;BR /&gt;'script' or a similar utility (e.g. GNU Screen) would be another option, although these would incur overhead.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Fri, 08 Sep 2006 20:07:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/audit-user-login-commands-executed/m-p/3859726#M276551</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-09-08T20:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Audit User login; commands executed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/audit-user-login-commands-executed/m-p/3859727#M276552</link>
      <description>First activity can be done when you convert your system to trusted mode. Then you can turn on auditing for the system which logs all activity. But it is not a good idea if you are not going to monitor the logs.&lt;BR /&gt;&lt;BR /&gt;Install sudo package so that you can assign root privilages to users and once user sudo's to root then activity will be logged onto .sh_history. &lt;BR /&gt;&lt;BR /&gt;As spex said above you can set history file to hold all activity.</description>
      <pubDate>Fri, 08 Sep 2006 20:24:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/audit-user-login-commands-executed/m-p/3859727#M276552</guid>
      <dc:creator>IT_2007</dc:creator>
      <dc:date>2006-09-08T20:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Audit User login; commands executed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/audit-user-login-commands-executed/m-p/3859728#M276553</link>
      <description>&lt;!--!*#--&gt;As suggested by "Spex", How can I do this:&lt;BR /&gt;&lt;BR /&gt;"You may also want to consider a 'sudo' approach to the user's history file so that he/she does not have direct write access to it. Routine archiving of ~user/$HISTFILE would also be a good idea."&lt;BR /&gt;&lt;BR /&gt;Also what's the overhead of converting it to trusted mode ?&lt;BR /&gt;&lt;BR /&gt;Could acct, acctmon etc. be used ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Sep 2006 22:09:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/audit-user-login-commands-executed/m-p/3859728#M276553</guid>
      <dc:creator>MohitAnchlia</dc:creator>
      <dc:date>2006-09-08T22:09:17Z</dc:date>
    </item>
  </channel>
</rss>

