<?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: script help in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4918848#M104161</link>
    <description>Thanks everyone, I'm aware of the sulog being the best fit for getting this info in /var/adm, but there were some unique reasons here why I can't use it that would take me too long too explain.   &lt;BR /&gt;&lt;BR /&gt;We have some ideas however on how we'll proceed and thanks to you all....</description>
    <pubDate>Wed, 17 Aug 2005 07:49:06 GMT</pubDate>
    <dc:creator>KPS</dc:creator>
    <dc:date>2005-08-17T07:49:06Z</dc:date>
    <item>
      <title>script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4918843#M104156</link>
      <description>Hi Gurus,&lt;BR /&gt;&lt;BR /&gt;Looking a script to do the following:&lt;BR /&gt;&lt;BR /&gt;I'd like to be able to go through the syslog and capture when anyone user does an &lt;BR /&gt;su - klxprod. &lt;BR /&gt;&lt;BR /&gt;I'd also like to to be able to put the output of the above SU activity within the the following field format if at all possible, like the following 2 examples.  &lt;BR /&gt;&lt;BR /&gt;SU 07/23 22:01 + tty?? root-klxprod&lt;BR /&gt;SU 07/20 09:14 + ta jsmith-klxprod               John Smith&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can someone please help?&lt;BR /&gt;&lt;BR /&gt;-KPS</description>
      <pubDate>Tue, 16 Aug 2005 20:03:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4918843#M104156</guid>
      <dc:creator>KPS</dc:creator>
      <dc:date>2005-08-16T20:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4918844#M104157</link>
      <description>Hi Ken,&lt;BR /&gt;I dont understand why you have to go through the syslog to get the entries of people doing su - where you already have a logfile recording all these&lt;BR /&gt;Have a look at /var/adm/sulog file that will have all entries in the format you like.</description>
      <pubDate>Tue, 16 Aug 2005 20:10:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4918844#M104157</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2005-08-16T20:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4918845#M104158</link>
      <description>/var/adm/sulog is already logging in the su sessions for all users. &lt;BR /&gt;&lt;BR /&gt;#grep klxprod /var/adm/sulog&amp;gt;/tmp/sulist.txt&lt;BR /&gt;&lt;BR /&gt;the above will give you su information related to the user klxprod.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Syam&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Aug 2005 20:33:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4918845#M104158</guid>
      <dc:creator>Ranjith_5</dc:creator>
      <dc:date>2005-08-16T20:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4918846#M104159</link>
      <description>You can do it as,&lt;BR /&gt;&lt;BR /&gt;Change sulog file permission as,&lt;BR /&gt;&lt;BR /&gt; 1. chmod 644 /var/adm/sulog&lt;BR /&gt;&lt;BR /&gt;Change syslog.conf configuration as,&lt;BR /&gt;&lt;BR /&gt; /etc/syslog.conf&lt;BR /&gt; *.auth           /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;Restart syslog daemon as,&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/syslogd stop&lt;BR /&gt;/sbin/init.d/syslogd start&lt;BR /&gt;&lt;BR /&gt;In Home Directory of klmprod,&lt;BR /&gt;&lt;BR /&gt; 1. vi .profile&lt;BR /&gt;     (tail -1 /var/adm/sulog&lt;BR /&gt;     grep 'klmprod' /var/adm/syslog/syslog.conf | tail -1) &amp;gt;&amp;gt; klmprod.log&lt;BR /&gt;&lt;BR /&gt;For every login to klmprod with su login informations from syslog.log and sulog will be stored in klmprod.log file.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Aug 2005 01:30:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4918846#M104159</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-08-17T01:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4918847#M104160</link>
      <description>Hi Ken looks that:&lt;BR /&gt;&lt;BR /&gt;more /var/adm/sulog | grep klxprod&lt;BR /&gt;&lt;BR /&gt;Regards, Ernesto.&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Aug 2005 02:19:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4918847#M104160</guid>
      <dc:creator>Ernesto Cappello</dc:creator>
      <dc:date>2005-08-17T02:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4918848#M104161</link>
      <description>Thanks everyone, I'm aware of the sulog being the best fit for getting this info in /var/adm, but there were some unique reasons here why I can't use it that would take me too long too explain.   &lt;BR /&gt;&lt;BR /&gt;We have some ideas however on how we'll proceed and thanks to you all....</description>
      <pubDate>Wed, 17 Aug 2005 07:49:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-help/m-p/4918848#M104161</guid>
      <dc:creator>KPS</dc:creator>
      <dc:date>2005-08-17T07:49:06Z</dc:date>
    </item>
  </channel>
</rss>

