1

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.

2 Answers 2

2

Check out ttysnoop.

1

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .