How to automatic log input command ?
I want to automatic log input command to a file.
for example:
the user 'test'
input a 'rm -rf /data' command.
the system can log the user,date and command to a file.
So i can find who destroy or delete my data.
Please help me.
Thanks and Best Regards !
[312 byte] By [
sunust] at [2007-11-25 22:59:45]

# 1
The best way to achieve this is by setting up auditing. Not only does it give you full control of what you wish to have logged, it also prevents the user from accessing this information themselves (as you'd have when you're relying on the shell's history file).
Check out: <a href="http://docs.sun.com/app/docs/doc/816-4557/6maosrjog?a=view" target="_blank">http://docs.sun.com/app/docs/doc/816-4557/6maosrjog?a=view&l t;/a>
LionO at 2007-7-5 17:48:47 >
