LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   login activity monitoring (https://www.linuxquestions.org/questions/linux-newbie-8/login-activity-monitoring-702726/)

srnsk 02-06-2009 08:15 AM

login activity monitoring
 
Hi all,
I am a newbie to linux and i want to monitor who are all logging into my server and what activities they are indulging. and i want to know if ppl who login using ssh are also monitored.
your help is appreciated very much
regards
senthil

Agrouf 02-06-2009 08:59 AM

How are they logging to your server? If they are using bash, you can look at their .bash_history file.

mapryan 02-06-2009 10:16 AM

Hi

There's two very different parts to your question. You can monitor who's logging into your system using the last command. This will include people who log in using ssh.

Monitoring what people are doing is a lot more difficult. As mentioned before, you can review shell history, but if you suspect someone of doing something naughty, if would be easy for them to cover their tracks by overwriting the history file. There are packages to allow you to do audit this in a secure fashion, but the ones I am aware of are paid for products, such as Powerbroker (http://www.symark.com/products/pboverview.html)

Unfortunately, Linux doesn't have a central accounting/audit file where all this stuff is stored, although most apps (like ftp, ssh, telnet) will drop a note in the /var/log/messages file when someone logs in or out

Hope this helps

Cheers

Mike


All times are GMT -5. The time now is 10:05 PM.