How to prove that I was able to do secure copy
Hi Guys,
I have a Unix Server where I was able to do secure copy (scp)but now I am able to. I want to prove it is there any log file I can have a look at which states success and / or says I did scp? Please help me here. Thank you |
If it fails, it'll tell you. You can also check the exit code '$?'; should be 0 (zero) for success.
If this is in a script, make sure you check the exit code and log both stdout and stderr eg Code:
# call script |
I am not talking about scripting point of view but auditing point of view
I did ran scp sometime back is there anywhere store is system log about command a user performs I believe there must be. dmesg? |
In your first question, you wanted to know if the command ran to success or not. In your next, you wanted to know if there is a history of commands a user perform. Which is it?
|
As root, you can view the history of the user(s)
Or a better way, you could do process accounting. It will give you a audit of your system and track commands executed by users. This article will explain it better http://www.cyberciti.biz/tips/howto-...ccounting.html |
The normal service logs (normally /var/log/messages) would have information about the login.
|
All times are GMT -5. The time now is 03:57 PM. |