В файл:
vi /root/.bashrc
Добавляем строки:
echo 'ALERT - Root Shell Access (hzgde.com) on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" user@domain.ru
И получаем письма при каждом логине по ssh :)
vi /root/.bashrc
echo 'ALERT - Root Shell Access (hzgde.com) on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" user@domain.ru
No comments :
Post a Comment
Note: only a member of this blog may post a comment.