tracking logins (remote & command Level)

Hi,

I need a solution to track the users which are logged in to remote machine and become root. And need the information from which machine the user logged and the commands history of the user. And this monitoring should be for round the clock.

If any solution for this pls let me know.

Thanks in advance.

-Pani G

[351 byte] By [gkpani@lucent.com] at [2007-11-25 23:34:57]
# 1
Try "man last" at the unix promplt. Also, take a look at the file /var/adm/messages.HTH,Roger S.
Jo_nage at 2007-7-5 18:19:36 > top of Java-index,General,Talk to the Sysop...
# 2

Every couple of weeks a question like this pops up, so you could also try searching for older threads on this subject.

Basically what things boil down to:

1. Make sure that you configure syslogd in such a way that it logs things like logins, su usage and so on.

2. Make a central logging server ("secloghost" for example) and configure all of the syslog daemons in such a way that they write their security related entries to this host, as well as to their local log files.

3. Try to find a way to secure the user's .history files. Either regularly SCP them to the secloghost or keep them somewhere else.

The problem with all of these points is the fact that whenever a user is root, he/she can circumvent all of these security measures. So while you could even go so far as to install keystroke logging shells, root can alsways be used to tamper with the log files.

This is of course why you should keep your root accounts as secure as possible :)

Cailin_Coilleach at 2007-7-5 18:19:36 > top of Java-index,General,Talk to the Sysop...
# 3
I agree with Thomas. I don't trust "last" command just like I don't trust "sulog". Best way is to configure syslogd to log remote logins/ftp's etc etc and route them to a central server so that it's all logged away from the host.Patrick/
patrick275 at 2007-7-5 18:19:36 > top of Java-index,General,Talk to the Sysop...