<?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: Keystroke logging using /usr/bin/script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633336#M378696</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am a bit puzzled. Where did you&lt;BR /&gt;find the information that HP-UX keystroke&lt;BR /&gt;logging does not support SSH?&lt;BR /&gt;&lt;BR /&gt;The manuals state:&lt;BR /&gt;&lt;BR /&gt;a) Create an entry (or entries) in the PAM&lt;BR /&gt;configuration file (/etc/pam.conf) including&lt;BR /&gt;the keystroke library as a session module:&lt;BR /&gt;&lt;BR /&gt;login session optional libpam_keystroke.so.1&lt;BR /&gt;dtlogin session optional libpam_keystroke.so.1&lt;BR /&gt;sshd session optional libpam_keystroke.so.1&lt;BR /&gt;rcomds session optional libpam_keystroke.so.1&lt;BR /&gt;OTHER session optional libpam_keystroke.so.1&lt;BR /&gt;&lt;BR /&gt;Note that this module may be configured for&lt;BR /&gt;one or more services, depending on the&lt;BR /&gt;intended effect of the logging.&lt;BR /&gt;&lt;BR /&gt;b) Enable keystroke logging in /etc/rbac/rbac.conf:&lt;BR /&gt;&lt;BR /&gt;KEY_STROKE_LOGGING = 1&lt;BR /&gt;&lt;BR /&gt;c) Create a keyfilter file under /etc/rbac specifying what users to log. For more&lt;BR /&gt;information on customizing specific policies,&lt;BR /&gt;see key_filter(4M).&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
    <pubDate>Sun, 16 May 2010 06:16:59 GMT</pubDate>
    <dc:creator>VK2COT</dc:creator>
    <dc:date>2010-05-16T06:16:59Z</dc:date>
    <item>
      <title>Keystroke logging using /usr/bin/script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633331#M378691</link>
      <description>Hi, I have a security requirement to do keystroke logging for when a vendor accesses our production systems.  I was all ready to use the new RBAC functionality until I read it does not support SSH.  So now I am looking at using /usr/bin/script, however the documentation and man pages are sadly lacking on how to implement in a secure manner. Has anyone done this, or have a white paper I can reference?  Or perhaps an even better solution?&lt;BR /&gt;&lt;BR /&gt;Thanks, Neil</description>
      <pubDate>Thu, 13 May 2010 17:05:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633331#M378691</guid>
      <dc:creator>Neil Ashworth_1</dc:creator>
      <dc:date>2010-05-13T17:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Keystroke logging using /usr/bin/script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633332#M378692</link>
      <description>Hi Neil, &lt;BR /&gt;&lt;BR /&gt;i never heard about any tool which  can log all key stroke. But there are some utility which will log user activities.&lt;BR /&gt;&lt;BR /&gt;Power broker is a very good tool which logs all commands &amp;amp; command outputs. but you have to purchase license.&lt;BR /&gt;&lt;BR /&gt;You can used rootsh is  open tool which will do the same thing. but i never test it.&lt;BR /&gt;&lt;BR /&gt; you can used hpux history to log all user commands. here with i am giving the implementation steps for this.&lt;BR /&gt;&lt;BR /&gt;1. Login to server &amp;amp; run below commands.&lt;BR /&gt;&lt;BR /&gt;cp /etc/profile /etc/profile.old.bhe&lt;BR /&gt;mkdir /var/adm/commandlog/&lt;BR /&gt;chmod 733 /var/adm/commandlog/&lt;BR /&gt;&lt;BR /&gt;2. vi  /etc/profile  &amp;amp;  remove old  history definitions if exists. &lt;BR /&gt;&lt;BR /&gt;3. Add  below entry to the last for profile file.&lt;BR /&gt;&lt;BR /&gt;export HISTFILE=/var/adm/commandlog/history_$(uname -n)_$( date +%Y_%b_%d_%H.%M.%S)_$(whoami)_from_$(who am i | awk '{print $1}')_$( who  am i -u | awk '{print $8}')&lt;BR /&gt;HISTFILESIZE=5000&lt;BR /&gt;HISTSIZE=5000&lt;BR /&gt;export  HISTFILE HISTSIZE HISTFILESIZE &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;GUdluck&lt;BR /&gt;Prasanth</description>
      <pubDate>Fri, 14 May 2010 07:24:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633332#M378692</guid>
      <dc:creator>Prasanth V Aravind</dc:creator>
      <dc:date>2010-05-14T07:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Keystroke logging using /usr/bin/script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633333#M378693</link>
      <description>Hello Neil,&lt;BR /&gt;&lt;BR /&gt;The script which i use on my system to keep track of all the keystrokes used by the user. Add this line at the bottom of the .profile file in the User Directory of whom you want to keep track.Test it may be this will help you to solve the problem.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#-------------------------------------------------------&lt;BR /&gt;#Tracking User Keystrokes&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;THISHOST=$(hostname|CUT -F 2-2 -d".")&lt;BR /&gt;&lt;BR /&gt;#Its path where the Logs Get Generated&lt;BR /&gt;#---------------------------------------------------------&lt;BR /&gt;LOGDIR=/output/logs     &lt;BR /&gt;LOGFILE=${THISTHOST}.${logname}.$ts&lt;BR /&gt;touch $LOGDIR/$LOGFILE&lt;BR /&gt;&lt;BR /&gt;export PS1="[$LOGNAME:$THISHOST]: \$PWD&amp;gt; "&lt;BR /&gt;&lt;BR /&gt;chown $LOGNAME ${LOGDIR}/${LOGFILE}&lt;BR /&gt;chmod 600 ${LOGDIR}/${LOGFILE}&lt;BR /&gt;script ${LOGDIR}/${LOGFILE}&lt;BR /&gt;clear&lt;BR /&gt;chmod 400 ${LOGDIR}/${LOGFILE}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this Information will help you. In case of any further query post it or mail me on:-ishwarraja@hotmail.com&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; B'Rgrds&lt;BR /&gt;Ishwar</description>
      <pubDate>Fri, 14 May 2010 11:55:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633333#M378693</guid>
      <dc:creator>Ishwar_1</dc:creator>
      <dc:date>2010-05-14T11:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Keystroke logging using /usr/bin/script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633334#M378694</link>
      <description>I'm using a modification Prasanth's method to log all users commands (since only a few actually have command line access) and it's working great. Thanks Prasanth.&lt;BR /&gt;&lt;BR /&gt;One caveate though - I found the .profile in the user's home directories overwrote the /etc/profile settings. You'll need to make sure the history entries are not set there.&lt;BR /&gt;&lt;BR /&gt;If you're using Ishwar's method, of course, this does not apply.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Mike&lt;BR /&gt;</description>
      <pubDate>Fri, 14 May 2010 14:31:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633334#M378694</guid>
      <dc:creator>Michael Sillers</dc:creator>
      <dc:date>2010-05-14T14:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Keystroke logging using /usr/bin/script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633335#M378695</link>
      <description>&amp;gt;Mike: You'll need to make sure the history entries are not set there.&lt;BR /&gt;&lt;BR /&gt;You can make the variables readonly in /etc/profile, so they can't be changed.</description>
      <pubDate>Sat, 15 May 2010 02:11:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633335#M378695</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-05-15T02:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Keystroke logging using /usr/bin/script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633336#M378696</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am a bit puzzled. Where did you&lt;BR /&gt;find the information that HP-UX keystroke&lt;BR /&gt;logging does not support SSH?&lt;BR /&gt;&lt;BR /&gt;The manuals state:&lt;BR /&gt;&lt;BR /&gt;a) Create an entry (or entries) in the PAM&lt;BR /&gt;configuration file (/etc/pam.conf) including&lt;BR /&gt;the keystroke library as a session module:&lt;BR /&gt;&lt;BR /&gt;login session optional libpam_keystroke.so.1&lt;BR /&gt;dtlogin session optional libpam_keystroke.so.1&lt;BR /&gt;sshd session optional libpam_keystroke.so.1&lt;BR /&gt;rcomds session optional libpam_keystroke.so.1&lt;BR /&gt;OTHER session optional libpam_keystroke.so.1&lt;BR /&gt;&lt;BR /&gt;Note that this module may be configured for&lt;BR /&gt;one or more services, depending on the&lt;BR /&gt;intended effect of the logging.&lt;BR /&gt;&lt;BR /&gt;b) Enable keystroke logging in /etc/rbac/rbac.conf:&lt;BR /&gt;&lt;BR /&gt;KEY_STROKE_LOGGING = 1&lt;BR /&gt;&lt;BR /&gt;c) Create a keyfilter file under /etc/rbac specifying what users to log. For more&lt;BR /&gt;information on customizing specific policies,&lt;BR /&gt;see key_filter(4M).&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Sun, 16 May 2010 06:16:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633336#M378696</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2010-05-16T06:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Keystroke logging using /usr/bin/script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633337#M378697</link>
      <description>&lt;A href="http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01944073/c01944073.pdf" target="_blank"&gt;http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01944073/c01944073.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Section 9.6.4.1 it says&lt;BR /&gt;&lt;BR /&gt;Note:  The keystroke logging feature does not currently work with Secure Shell (SSH) login.</description>
      <pubDate>Mon, 17 May 2010 14:12:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633337#M378697</guid>
      <dc:creator>Neil Ashworth_1</dc:creator>
      <dc:date>2010-05-17T14:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Keystroke logging using /usr/bin/script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633338#M378698</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;THis is a surprise. But do not trust&lt;BR /&gt;the dicumentation without checking.&lt;BR /&gt;&lt;BR /&gt;For another customer, I uncovered&lt;BR /&gt;a serious mistake in the document&lt;BR /&gt;about supported OS versions for&lt;BR /&gt;VMs on Tukwila servers.&lt;BR /&gt;&lt;BR /&gt;The bottom line, it should work.&lt;BR /&gt;Best way, try it.&lt;BR /&gt;&lt;BR /&gt;When I get a chance I will certainly do it&lt;BR /&gt;myself too :)&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Mon, 17 May 2010 21:54:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633338#M378698</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2010-05-17T21:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Keystroke logging using /usr/bin/script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633339#M378699</link>
      <description>Actually I did try to use rbac keystroke logging, and had some success.  I found if I just turned on logging and did not create the key filter file, then ALL user activity was logged - each user with their own unique logfile.  As soon as I created a key filter file with a specific user registered, then logging stopped working.  It was then that I found in the documentation that SSH was not supported, so I stopped my testing using rbac.&lt;BR /&gt;&lt;BR /&gt;I suppose I could go with just 'log everyone' option, but since it is not HP supported, then that would not pass muster with mgmt.</description>
      <pubDate>Tue, 18 May 2010 19:33:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633339#M378699</guid>
      <dc:creator>Neil Ashworth_1</dc:creator>
      <dc:date>2010-05-18T19:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Keystroke logging using /usr/bin/script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633340#M378700</link>
      <description>Hello Neil,&lt;BR /&gt;&lt;BR /&gt;a) Could you tell me how your&lt;BR /&gt;/etc/rbac/key_filter looks like?&lt;BR /&gt;&lt;BR /&gt;Here is one of my examples from the labs&lt;BR /&gt;when I teach HP-UX courses (I am a senior&lt;BR /&gt;Unix instructor and architect and, yes,&lt;BR /&gt;I am employed by HP).&lt;BR /&gt;&lt;BR /&gt;user2:/bin/ls:dflt:dflt:ks_all&lt;BR /&gt;&lt;BR /&gt;b) HP-UX supports the use of keystroke&lt;BR /&gt;logging with SSH as long as the target&lt;BR /&gt;system is configured with "UseLogin yes"&lt;BR /&gt;in /etc/opt/ssh/sshd_config.&lt;BR /&gt;&lt;BR /&gt;By default, sshd_config has "UseLogin no".&lt;BR /&gt;&lt;BR /&gt;Restart SSH daemons and try again.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Mon, 24 May 2010 06:13:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633340#M378700</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2010-05-24T06:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Keystroke logging using /usr/bin/script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633341#M378701</link>
      <description>With respect to the /etc/rbac/key_filter file. I'm looking for the proper syntax to this file. I've read the man page on key_filter, but it does not mention the following:&lt;BR /&gt;1.) What is the syntax of the file if I want to capture all in/out. I don't want to specify every command possible in this file. There should be a way to capture all commands issued for a specified user. The syntax I have is&lt;BR /&gt;user1::dflt:dflt:ks_all&lt;BR /&gt;Is that correct? If I leave the second field blank will that cause all the commands to be logged?&lt;BR /&gt;2.) The manpage mentions that if the key_filter file exists and there are no entries in it then no logging will happen. But what is the outcome if the key_filter file does not exist?&lt;BR /&gt;thanks.</description>
      <pubDate>Wed, 28 Jul 2010 19:36:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keystroke-logging-using-usr-bin-script/m-p/4633341#M378701</guid>
      <dc:creator>Gary Beckett</dc:creator>
      <dc:date>2010-07-28T19:36:51Z</dc:date>
    </item>
  </channel>
</rss>

