I'm trying to set up the root access alert that Greg mentions in the VPS security thread but it isn't working.
This is what i've entered into the .bash_profile file
"echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root Access from `who | awk '{print $6}'`" your@email.com"
The thing is when i log in with ssh it says
"mail: option requires an argument --s"
What am i entering wrong?
Thanks


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks