Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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

 
discard

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.