Debianzone http://debianzone.posterous.com Most recent posts at Debianzone posterous.com Sat, 28 Nov 2009 17:38:27 -0800 Mail alert for ssh login http://debianzone.posterous.com/mail-alert-for-ssh-login http://debianzone.posterous.com/mail-alert-for-ssh-login To get a mail when some logged into your linux system then follow this steps Edit .bashrc in root folder /root [shell] vi .bashrc [/shell] Add following line at end of the file [shell] echo 'ALERT - Root Shell Access (server name) on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" yourmail@gmail.com[/shell]

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/894020/a9105079458196173bfc8734807b32ed.jpeg http://posterous.com/users/4xlDDq0UWIA9 Sandeep Manne smanne Sandeep Manne