Question Locked

Who modified /.ssh/authorized_keys

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
It appears during the overnight run on a production sun server the authorized_keys file was modified and the file size changed. Is there a way to determine who modified this file?

3 replies

by jason_c42

There are a couple of tools you can use to track this down.

Here's what I would do:
1. Check the modification timestamp on the authorized_keys file.
2. Check root shell history (/.sh_history) to try to find the command that modified the file.
3. Use "last" to check for any logins near the time of the file modification.
4. Check /var/adm/sulog to see if someone su'd to root near the time of file modification.
5. Check /var/adm/messages for anything going on near the time of the file modification.

Based on what you find there may be clues to lead you to whomever updated the file. If you're lucky, the person modifying the keys file su'd to root and it is logged.

This discussion is closed to new replies.