<?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: su logs in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178502#M459569</link>
    <description>&amp;gt;I checked in .sh_history,&lt;BR /&gt;&lt;BR /&gt;Which su(1) option did you use, "-"?&lt;BR /&gt;Which .sh_history?  What does "echo $HISTFILE" show once you su?&lt;BR /&gt;&lt;BR /&gt;This is why this isn't accurate.</description>
    <pubDate>Mon, 01 Jun 2009 06:31:08 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-06-01T06:31:08Z</dc:date>
    <item>
      <title>su logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178496#M459563</link>
      <description>Hi Gurus,&lt;BR /&gt;&lt;BR /&gt;All su id i can get from syslog.log, but can you pls tell me that from where we can check that commnds executed by the user who has done su from normal userid to root.&lt;BR /&gt;&lt;BR /&gt;OS - 11.11&lt;BR /&gt;Server - SD32A, RP4440, RP3440&lt;BR /&gt;&lt;BR /&gt;thnx...farhan</description>
      <pubDate>Mon, 01 Jun 2009 02:10:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178496#M459563</guid>
      <dc:creator>Md. Farhan A Azam</dc:creator>
      <dc:date>2009-06-01T02:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: su logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178497#M459564</link>
      <description>You can find the su log from /var/adm/sulog.&lt;BR /&gt;&lt;BR /&gt;Normally you can see the .sh_history file to see what is executed by the user at that time.</description>
      <pubDate>Mon, 01 Jun 2009 02:32:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178497#M459564</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2009-06-01T02:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: su logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178498#M459565</link>
      <description>Yes,&lt;BR /&gt;&lt;BR /&gt;Ahsan is right.&lt;BR /&gt;&lt;BR /&gt;This is what I used to do.&lt;BR /&gt;We also modify the user .profile and make the history file with the date and time stamp.&lt;BR /&gt;each time the user logins all the commands are logged into that file (that has date-time stamps).&lt;BR /&gt;&lt;BR /&gt;The drawback of this is there are too many files created. for example if the user logs in and logs out 100 times, there are 100 files created.&lt;BR /&gt;&lt;BR /&gt;if you go this route then, you may need to cron this to get rid of these files.&lt;BR /&gt;&lt;BR /&gt;let me know if you need the profile I will cut and paste it.&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Jun 2009 03:47:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178498#M459565</guid>
      <dc:creator>Basheer_2</dc:creator>
      <dc:date>2009-06-01T03:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: su logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178499#M459566</link>
      <description>Hi,&lt;BR /&gt;From  syslog.log you can find out which user is using "su" command. &lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;from where we can check that commnds executed by the user &lt;BR /&gt;&lt;BR /&gt;Go to that users home directiory and check .sh_history file there you can find the commands.&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Mon, 01 Jun 2009 03:49:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178499#M459566</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-06-01T03:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: su logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178500#M459567</link>
      <description>&amp;gt;where we can check that commands executed by the user who has done su from normal userid to root.&lt;BR /&gt;&lt;BR /&gt;You can't accurately do this.  If the user does "su -", you could look at root's history file but the user could erase it.  If no "-", again the user could erase his history.&lt;BR /&gt;&lt;BR /&gt;One suggestion is to use sudo for "each" command so they are all logged.</description>
      <pubDate>Mon, 01 Jun 2009 05:22:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178500#M459567</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-01T05:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: su logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178501#M459568</link>
      <description>Hi Gurus,&lt;BR /&gt;&lt;BR /&gt;i checked in .sh_history, but the command which i am executing is not getting logged in history.&lt;BR /&gt;&lt;BR /&gt;thnx...farhan</description>
      <pubDate>Mon, 01 Jun 2009 05:58:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178501#M459568</guid>
      <dc:creator>Md. Farhan A Azam</dc:creator>
      <dc:date>2009-06-01T05:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: su logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178502#M459569</link>
      <description>&amp;gt;I checked in .sh_history,&lt;BR /&gt;&lt;BR /&gt;Which su(1) option did you use, "-"?&lt;BR /&gt;Which .sh_history?  What does "echo $HISTFILE" show once you su?&lt;BR /&gt;&lt;BR /&gt;This is why this isn't accurate.</description>
      <pubDate>Mon, 01 Jun 2009 06:31:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178502#M459569</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-01T06:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: su logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178503#M459570</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;i use "su -", and its geeting logged in sulog, but the other commands which i am executing (i.e. top, bdf)is not getting logged in .sh_history of root.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thnx...farhan</description>
      <pubDate>Tue, 02 Jun 2009 03:14:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178503#M459570</guid>
      <dc:creator>Md. Farhan A Azam</dc:creator>
      <dc:date>2009-06-02T03:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: su logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178504#M459571</link>
      <description>echo $HISTFILE&lt;BR /&gt;&lt;BR /&gt;its shows,&lt;BR /&gt;# echo $HISTFILE&lt;BR /&gt;sh: HISTFILE: Parameter not set.&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;# echo $ HISTFILE&lt;BR /&gt;$ HISTFILE&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;thnx...farhan</description>
      <pubDate>Tue, 02 Jun 2009 03:22:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178504#M459571</guid>
      <dc:creator>Md. Farhan A Azam</dc:creator>
      <dc:date>2009-06-02T03:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: su logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178505#M459572</link>
      <description>&amp;gt;# echo $HISTFILE&lt;BR /&gt;sh: HISTFILE: Parameter not set.&lt;BR /&gt;&lt;BR /&gt;Since root doesn't have a history file, nothing will be logged.  You must set HISTFILE in your .profile.</description>
      <pubDate>Tue, 02 Jun 2009 06:38:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178505#M459572</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-02T06:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: su logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178506#M459573</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;After configuring HISTFILE &amp;amp; HISTSIZE, it working fine. Thanks to all of you.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thnx...farhan</description>
      <pubDate>Mon, 15 Jun 2009 02:40:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/su-logs/m-p/5178506#M459573</guid>
      <dc:creator>Md. Farhan A Azam</dc:creator>
      <dc:date>2009-06-15T02:40:26Z</dc:date>
    </item>
  </channel>
</rss>

