<?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: log for activities in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/log-for-activities/m-p/4995796#M423328</link>
    <description>Thanks for your quick replys rick and A. clay.&lt;BR /&gt;&lt;BR /&gt;Guys can this be done without sudo?&lt;BR /&gt;&lt;BR /&gt;also lets say that I accidentally stop SAP as the root user, would this also be recorded in the sudo log ?&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 07 Aug 2006 11:11:03 GMT</pubDate>
    <dc:creator>Fabian Briseño</dc:creator>
    <dc:date>2006-08-07T11:11:03Z</dc:date>
    <item>
      <title>log for activities</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-for-activities/m-p/4995790#M423322</link>
      <description>Hello guys.&lt;BR /&gt;need your advice.&lt;BR /&gt;&lt;BR /&gt;I have a SAP instance running in a server, and here's what i want to do.&lt;BR /&gt;&lt;BR /&gt;I want to create a log for eveytime SAP is brought down, And in this log I want to register the time and date that this happened and log the user that did it.&lt;BR /&gt;&lt;BR /&gt;Can this be done gurus ?.</description>
      <pubDate>Mon, 07 Aug 2006 10:40:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-for-activities/m-p/4995790#M423322</guid>
      <dc:creator>Fabian Briseño</dc:creator>
      <dc:date>2006-08-07T10:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: log for activities</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-for-activities/m-p/4995791#M423323</link>
      <description>Doesn't SAP have some sort of activity log that indicates when it is brought down?&lt;BR /&gt;&lt;BR /&gt;Also, you could use SUDO to allow specific users to stop the SAP. In the sudo.log will be the commands, time stamp, and the user.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Aug 2006 10:45:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-for-activities/m-p/4995791#M423323</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2006-08-07T10:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: log for activities</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-for-activities/m-p/4995792#M423324</link>
      <description>Doesn't SAP have some sort of activity log that indicates when it is brought down?&lt;BR /&gt;&lt;BR /&gt;Also, you could use SUDO to allow specific users to stop the SAP. In the sudo.log will be the commands, time stamp, and the user.&lt;BR /&gt;&lt;BR /&gt;yes it does have a log, but it only logs the most recent brought down time. and not a history of them.&lt;BR /&gt;&lt;BR /&gt;What is SUDO?&lt;BR /&gt;&lt;BR /&gt;Let's say that user1 and user2 are the only ones allowed to stop sap, how would i go about to doing this&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Aug 2006 10:53:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-for-activities/m-p/4995792#M423324</guid>
      <dc:creator>Fabian Briseño</dc:creator>
      <dc:date>2006-08-07T10:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: log for activities</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-for-activities/m-p/4995793#M423325</link>
      <description>SUDO is a utility that translates to SuperUser DO&lt;BR /&gt;&lt;BR /&gt;Allows certain defined users the ability to execute defined commands as superuser.&lt;BR /&gt;&lt;BR /&gt;SUDO is available from HP as a depot binary file. Readily available, no charge.&lt;BR /&gt;&lt;BR /&gt;When the SAP crashes, you will have a log in the SAP activity log file. When a user stops SAP, have the user use SUDO then the command will be logged in the sudoers log file with the timestamp and $LOGNAME.</description>
      <pubDate>Mon, 07 Aug 2006 10:56:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-for-activities/m-p/4995793#M423325</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2006-08-07T10:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: log for activities</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-for-activities/m-p/4995794#M423326</link>
      <description>Sudo is a package that will allow normal users to run commands as another user (even root). It logs each of these activities so it is a good fit for your need. You also need to really restrict who is actually able to execute your SAP start/stop commands so that, for example, only root is allowed to execute (or write to) these files then you setup a sudo command to allow user1 and user2 (only) to execute these start/stop commands with an effective UID of 0.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.8p9/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.8p9/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Study the documentation included with this package; everything will be explained there.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Aug 2006 10:59:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-for-activities/m-p/4995794#M423326</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-08-07T10:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: log for activities</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-for-activities/m-p/4995795#M423327</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;The sudo shipped with Internet Express is a bit more reliable than the one on the porting center. The depot has needed dependencies built in.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://software.hp.com" target="_blank"&gt;http://software.hp.com&lt;/A&gt; search for Internet Express search for sudo.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 07 Aug 2006 11:06:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-for-activities/m-p/4995795#M423327</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-08-07T11:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: log for activities</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-for-activities/m-p/4995796#M423328</link>
      <description>Thanks for your quick replys rick and A. clay.&lt;BR /&gt;&lt;BR /&gt;Guys can this be done without sudo?&lt;BR /&gt;&lt;BR /&gt;also lets say that I accidentally stop SAP as the root user, would this also be recorded in the sudo log ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Aug 2006 11:11:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-for-activities/m-p/4995796#M423328</guid>
      <dc:creator>Fabian Briseño</dc:creator>
      <dc:date>2006-08-07T11:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: log for activities</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-for-activities/m-p/4995797#M423329</link>
      <description>No, obviously anything not run under sudo would not be logged by sudo. You could create a wrapper script which does the logging and then calls the "real" SAP start/stop commands but the same problem exists --- root could still execute the real commands outside the wrapper. It is very difficult to prevent root from executing anything and removing all traces of his activity (for example, root could edit your log files and then change the timestamps on the file so that "nothing" ever happened).&lt;BR /&gt;&lt;BR /&gt;Sudo is about as good a solution as you are going to find --- and if you can't trust your admins then SAP start/stop logging may be the least of your problems.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Aug 2006 11:19:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-for-activities/m-p/4995797#M423329</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-08-07T11:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: log for activities</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-for-activities/m-p/4995798#M423330</link>
      <description>thanks guys for your advice.&lt;BR /&gt;&lt;BR /&gt;everyone was a big help&lt;BR /&gt;&lt;BR /&gt;see you later</description>
      <pubDate>Mon, 07 Aug 2006 12:19:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-for-activities/m-p/4995798#M423330</guid>
      <dc:creator>Fabian Briseño</dc:creator>
      <dc:date>2006-08-07T12:19:46Z</dc:date>
    </item>
  </channel>
</rss>

