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.

I currently have some systems that multiple people have access to for administration purposes. We've modified the history log so that we capture 2k lines of history per user to help aid in who has done what on the system. However, we would additionally like to capture all keyboard input when we (the administrators) log in, and log it to a file so we can see what changes were made to files once people go into vi to edit them. It will also aid us in documenting when we are going through a compile of software and the like.

How can I do this? CentOS 5.4 if it makes a difference.

share|improve this question
    
You're probably going to encounter some issues with control characters and what not when raw logging terminals using vi. –  Warner May 5 '10 at 18:11

3 Answers 3

up vote 2 down vote accepted

There is tty log available.

share|improve this answer

When I have to log shell activity, I sometimes use a combination of rootsh and central logging.

share|improve this answer

You might take a look at script and see how it would work for you.

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.