<?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: Command history in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3011116#M911429</link>
    <description>Hello!&lt;BR /&gt;&lt;BR /&gt;If you use trusted system it write all&lt;BR /&gt;what done in the system.&lt;BR /&gt;You can also use script command that will&lt;BR /&gt;save all what done in the prompt.&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
    <pubDate>Mon, 30 Jun 2003 20:08:55 GMT</pubDate>
    <dc:creator>Caesar_3</dc:creator>
    <dc:date>2003-06-30T20:08:55Z</dc:date>
    <item>
      <title>Command history</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3011109#M911422</link>
      <description>Which is the best way to log every shell command on an HP-UX matchine?.&lt;BR /&gt;Sometimes it happens that a user did something and I want to see what commands he gave out from his terminal session but it's not listed in .sh_history or in similar file. Sometimes even happens that the history file is deleted.&lt;BR /&gt;A would appreciate any ideas...&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 30 Jun 2003 13:36:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3011109#M911422</guid>
      <dc:creator>Laszlo Csizmadia</dc:creator>
      <dc:date>2003-06-30T13:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Command history</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3011110#M911423</link>
      <description>Laszlo,&lt;BR /&gt;&lt;BR /&gt;Look into trusted system.  I think you can audit a user's activities with it.&lt;BR /&gt;&lt;BR /&gt;Hai</description>
      <pubDate>Mon, 30 Jun 2003 13:38:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3011110#M911423</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2003-06-30T13:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Command history</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3011111#M911424</link>
      <description>you could put &lt;BR /&gt;script filename&lt;BR /&gt;in their .profile....&lt;BR /&gt;&lt;BR /&gt;but this would capture all stdin stdout and stderr&lt;BR /&gt;&lt;BR /&gt;you would have some large files on your system if you didn't clean them</description>
      <pubDate>Mon, 30 Jun 2003 13:39:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3011111#M911424</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-06-30T13:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Command history</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3011112#M911425</link>
      <description>Laszlo,&lt;BR /&gt;  Check whether HISTFILE is exported for all users.  If its not exported then you cannot see the command history in .sh_history file.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Umapathy&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jun 2003 13:49:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3011112#M911425</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-06-30T13:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Command history</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3011113#M911426</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;# man lastcomm&lt;BR /&gt;&lt;BR /&gt;If you activate accounting do not forget to check the size of /var even extend it.&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;&lt;BR /&gt;Robert-Jan.</description>
      <pubDate>Mon, 30 Jun 2003 14:04:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3011113#M911426</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2003-06-30T14:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Command history</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3011114#M911427</link>
      <description>Check their profile to be sure the HIST variables are being exported.&lt;BR /&gt;&lt;BR /&gt;You could have their HISTFILE go to a folder other than their default home folder, one that they don't have priviledges to delete like /var/adm.  That will not keep them from editing the files if that is what you think is happening.&lt;BR /&gt;&lt;BR /&gt;I think Auditing is your best bet.&lt;BR /&gt;&lt;BR /&gt;Jim&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jun 2003 14:48:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3011114#M911427</guid>
      <dc:creator>Jim Mallett</dc:creator>
      <dc:date>2003-06-30T14:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Command history</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3011115#M911428</link>
      <description>You can set your system to be a trusted system.&lt;BR /&gt;...and that means that everybody gets 'trusted'.  So you can count a space being chewed up, and the need to review these files.&lt;BR /&gt;&lt;BR /&gt;Or, you can look into a third party software that allows you to record everything a person or persons does on a toggle on/off basis.  That way you don't get the all or nothing effect of a trusted system.  &lt;BR /&gt;We went with PowerBroker from Symark.  We use it for spot monitory/checking of folks, and use the tools to set up customized root permissions (and record the activity).&lt;BR /&gt;&lt;BR /&gt;Cause everyone..needs choices,&lt;BR /&gt;Rgrds,&lt;BR /&gt;Rita&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jun 2003 14:53:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3011115#M911428</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2003-06-30T14:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Command history</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3011116#M911429</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;If you use trusted system it write all&lt;BR /&gt;what done in the system.&lt;BR /&gt;You can also use script command that will&lt;BR /&gt;save all what done in the prompt.&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
      <pubDate>Mon, 30 Jun 2003 20:08:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3011116#M911429</guid>
      <dc:creator>Caesar_3</dc:creator>
      <dc:date>2003-06-30T20:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Command history</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3011117#M911430</link>
      <description>Assuming the users have the standard POSIX shell (or perhaps ksh), put this in your /etc/profile file:&lt;BR /&gt;&lt;BR /&gt;export HISTFILE=$HOME/.sh_history&lt;BR /&gt;&lt;BR /&gt;Just to be sure, create the shell history file in every user's directory. Assuming (again) that all users have their HOME in the /home directory, do this one time:&lt;BR /&gt;&lt;BR /&gt;umask 077&lt;BR /&gt;export PATH=/usr/bin&lt;BR /&gt;for MYHOME in /home/*&lt;BR /&gt;do&lt;BR /&gt;MYUSER=$(basename $MYHOME)&lt;BR /&gt;touch $MYHOME/.sh_history&lt;BR /&gt;chown $MYUSER $HOME/.sh_history&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Note that if the users are doing something complicated like running an Xwindow emulator and using CDE to manage their screens, there are more steps required.</description>
      <pubDate>Mon, 30 Jun 2003 20:16:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-history/m-p/3011117#M911430</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-06-30T20:16:50Z</dc:date>
    </item>
  </channel>
</rss>

