Tracing a terminal

Hi you all, any of you know how to monitor what is going on in another terminal?
I mean if somebody will install an application on my server remotely and I want to "watch" what he is doing. I remember that some one use the "audit" command but now I just can't remember.

thanx.:mad:

What Unix are you using? Some (Linux distributions specifically) come with a tool called ttysnoop, that mirrors their terminal session on another terminal you can log into. Other times (depending on the shell - this doesn't work in real time with the bash shell for example) you can simply tail -f /home/usrname/.sh_history...
If you just want to turn on auditing, knowing the Unix variant you're using is helpful, since different system log different ways.

Also, if you want a screendump of what the user is doing on the terminal (I think it only works on the /dev/tty* terminals) in Linux, look at the /dev/vcs* files. See man vcs for more info.

Well sorry I miss the UNIX kind.

Im using SOlaris 7

cheers