Open job opened 12 years ago
Rootsh (http://sourceforge.net/projects/rootsh/) looks like a good candidate for this. It logs all user commands and output, and throws it to syslog.
Things that would need to be done to deploy this:
http://manpages.ubuntu.com/manpages/maverick/man8/pam_tty_audit.8.html could do the job of tty logging. But it doesn't log output of commands.
pam_tty_audit is not available on Ubuntu. Acct does the equivalent.
All shell command's and as much as possible should be logged (over encrypted connection) to one or two masterservers and be stored for future reference in case of abuse.