Log all commands used in a Session....how?
Hello,
I would like to know how I could log all the commands a user uses (kind of like .bash_history does) while he/she is in my server. The purpose for this is security. So if someone logs in via the network/internet, and does any nasty stuff, I could always look into the file and see what they did. Any thoughts on how I could do this? |
Turn on process accounting. Unfortunately, many distros' kernels don't have process accounting enabled, so you may need to do a kernel recompile and get the user space tools. Google should be able to tell you more.
|
OK, how do I know if my kernel has that feature?
|
All times are GMT -5. The time now is 11:06 PM. |