- Logi serverisse kasutajana root.
- Veendu, et oled oma kodukataloogis ( Abiks käsud ‘cd’ ja ‘pwd’ ) . Ava fail .bash_profile oma lemmik tekstitöötlusprogrammiga vi/mc/nano vms:
vi .bash_profile
mcedit .bash_profile
nano .bash_profile - Lisa faili lõppu rida, kus user@example.com on asendatud meiliaadressiga, kuhu teated saadetakse:
echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" user@example.com
Link: http://www.mydigitallife.info/2007/08/11/how-to-get-linux-server-sends-email-alert-on-root-login/
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.