trader7702
04-06-2004, 03:15 PM
I set this up for root login:
echo 'ALERT - Root Shell Access (ServerName) on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" user[at]domain.com
Everything works peachy. However, I also wanted to add this to anouther user other then root. EXACT (copy/past) same code but it tells me bad mail address.
Am I missing something here?
T7702
echo 'ALERT - Root Shell Access (ServerName) on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" user[at]domain.com
Everything works peachy. However, I also wanted to add this to anouther user other then root. EXACT (copy/past) same code but it tells me bad mail address.
Am I missing something here?
T7702
