Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

One user is working on ssh shell. Root wants to monitor user's actions on root's terminal window.

I was thinking about connecting to screen twice. Input and output is required. *cat .bash_history* is not enough.

share|improve this question
up vote 2 down vote accepted

Check out ttysnoop.

share|improve this answer

By Anders' suggestion, ttysnoop is a great utility for this. For something more permanent, you can try out something like rootsh. I have not used this as a default shell, but your sysadmin could easily test how well that works.

You can also look into writing a wrapper around the script utility and setting that wrapper as the default shell.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.