I'm feeling that some people are using the root, how i can log all commands and connections times including ips made to the server (ssh) from all users?
history command is not enough
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
Root is root. Anything you do to try to keep track of root usage can be subverted or circumvented by someone who has root; even if you cause bash to pipe all history file entries to syslog on a secured remote server, for example, your system is only safe until the badly-behaved user figures out what you've done and disables or works around it. This is a social problem, not a technical one. You need to implement a policy that will prevent people from using root, and put in place system checks to ensure that only acceptable access is granted, in a monitored and logged environment.
Hope this helps - good luck. | |||
feedback
|
|
BSM audit logs will help in tracking user commands and events http://seclab.cs.ucdavis.edu/projects/misuse/prototypes/bsm.html whowatch tool is also helpfull http://www.cyberciti.biz/tips/linux-and-unix-interactive-process-and-users-monitoring-tool.html | |||
|
feedback
|
|
well you could just send yourself an email saying that "Elvis" entered the building In the .bashrc put this
So every time the user root logs in you will be notified | |||
|
feedback
|
|
The following version of OpenSSH allows you to monitor all keystrokes which pass through the SSH daemon. My organization (Lawrence Berkeley National Laboratory) uses this code internally to support our science research environments, with great success. http://code.google.com/p/auditing-sshd/
| |||
|
feedback
|
|
As long as it doesn't get subverted process accounting can yield useful information. Disabling the root password will prevent use of A periodic scan of Check the | |||
|
feedback
|
/var/log/auth.logand/var/log/daemon.log...? What you want logged should already be logged in most vanilla setups. So you need to filter it out of the logs, that's all. Specifically if you'd use sudo, you will also see which command was issues. Also, I would not recommend to allow root login via SSH. – STATUS_ACCESS_DENIED Mar 3 '11 at 17:02