i have an ubuntu 12.04. i install bsd-mailx in my ubuntu and have internet on my server. I set the alarm to send me an email, when who login to server with root user.
configurtion that send email notification to me is as follows. i add this cod in .bashrc file in root directory.
echo 'ALERT - Root Shell Access (underzero) on:'date
| mail -s "Alert: Root Access fromwho | cut -d’(’ -f2 | cut -d’)’ -f1
but i whene login with root user, email notification alarm, don’t send to my email.
pleas help me.