How to find who’s doing what on your boxes:
What it is |
What it does |
|
finds all files owned by “youruser” |
find /directory_path -mtime -1 -ls |
find /directory_path -mtime -1 -ls
|
find files that have changes in the past 24 hours |
|
shows what processes are using cpu/mem etc |
|
shows traffic on eth0 realtime |
|
shows what your firewall rules are |
|
kills a process with an id of 1234. You find out what process id is by doing “ps aux | grep whateverprocessname” |
|
shows who’s connecting to what process on your box |
|
shows what processes are listening on what port, and what PID they are |
|
shows what processes apache2 is running, in case you want to kill them |
|
shows who’s logged in |
Where to look |
What to look for |
/var/log/auth.log |
look for successful logins, especially as user ‘root’. You can search in vi using ‘/’ then typing what you want to search for |