Monitoring all user keystroke activity

Hello,

First post so bear with me....i've done lost of searches on this and did not find a definitive answer.

I need to be able to capture in log every single keystroke a user performs, I am aware that the script command can be used to do this, however, here is my dilemma/problem.

Here is my profile file in the users home directory

# @(#)sol2:prms.pro 3.1 5/30/95 21:21:53
export P
. $Y/conf/environ
. $CONF/getterm
VVTERM=$TERM
export VVTERM
DBPATH=$ADMDB
PS1="PRMS:prms> "
export DBPATH
stty erase intr
echo "Terminal type set to $TERM, erase is ^H, interrupt is ^C"

When I logon I always see PRMS:prms> as the PS1, however, when I add the script command into this profile PS1 gets changed to $

I can't seem to figure out how to enforce the PRMS:prms> setting after the script is activated. Also when the script is killed or the users exits the shell the prompt goes back to the PRMS:prms> rather than just shutting down the session.

So in summary I want people to logon, a script is then started monitoring all activity and for them to be given the normal PS1 setting (PRMS:prms>).

Can anyone help with this?

Thanks in advance

this is not a nice behaviour and is something near to hacking which is forbidden by our rules!
i'll close this thread for now a let the admins decide what to do.

thanks,
DN2