<?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 Sudo in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3920987#M764435</link>
    <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I am login with my user id and password and then sudo su – mywork area , is there any chance to have a history of commands executed my me , after sudo or before sudo&lt;BR /&gt;</description>
    <pubDate>Thu, 04 Jan 2007 13:13:15 GMT</pubDate>
    <dc:creator>johnreid</dc:creator>
    <dc:date>2007-01-04T13:13:15Z</dc:date>
    <item>
      <title>Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3920987#M764435</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I am login with my user id and password and then sudo su – mywork area , is there any chance to have a history of commands executed my me , after sudo or before sudo&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Jan 2007 13:13:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3920987#M764435</guid>
      <dc:creator>johnreid</dc:creator>
      <dc:date>2007-01-04T13:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3920988#M764436</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;You can set it up.&lt;BR /&gt;&lt;BR /&gt;export HISTFILE=~/.sh_history&lt;BR /&gt;export HISTSIZE=5000&lt;BR /&gt;&lt;BR /&gt;This makes a file and limits the size. Not available with c shell.&lt;BR /&gt;&lt;BR /&gt;You can if you have permissions build this feature into your .profile.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 04 Jan 2007 13:52:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3920988#M764436</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-01-04T13:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3920989#M764437</link>
      <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;sh-posix and ksh store the command history to ~/.sh_history by default.  Both of these shells have a default HISTSIZE of 128, but this can be changed by exporting the new value to the environment.&lt;BR /&gt;&lt;BR /&gt;If you'd like the command history for user1 and user2 to be recorded to the same file, add, for instance, 'HISTFILE=/usr/local/share/hist; export HISTFILE' to ~/.profile for each user.&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Thu, 04 Jan 2007 14:41:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3920989#M764437</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2007-01-04T14:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3920990#M764438</link>
      <description>agree with previous posters about .sh_history plus&lt;BR /&gt;&lt;BR /&gt;Remember sudo also logs the commands in the syslog.log file..</description>
      <pubDate>Thu, 04 Jan 2007 22:25:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3920990#M764438</guid>
      <dc:creator>Emil Velez</dc:creator>
      <dc:date>2007-01-04T22:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3920991#M764439</link>
      <description>Also check out the 'script' command.&lt;BR /&gt;&lt;BR /&gt;If you put 'script /tmp/roothist.txt' in root's profile, all commands issued by root will be recorded in this file.&lt;BR /&gt;&lt;BR /&gt;'script -a /tmp/roothist.txt' will also append the output of these commands.&lt;BR /&gt;&lt;BR /&gt;Do keep an eye on these files, though.. they are NOT automatically cleaned up and could fill up lots of diskspace after a while.&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Fri, 05 Jan 2007 04:06:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3920991#M764439</guid>
      <dc:creator>Wouter Jagers</dc:creator>
      <dc:date>2007-01-05T04:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sudo</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3920992#M764440</link>
      <description>Naturally, you can try out the script command manually first, it will start recording as soon as you issue it. Then you can decide whether it's useful for you.&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Fri, 05 Jan 2007 04:08:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo/m-p/3920992#M764440</guid>
      <dc:creator>Wouter Jagers</dc:creator>
      <dc:date>2007-01-05T04:08:15Z</dc:date>
    </item>
  </channel>
</rss>

