RE: email when user su's to root

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I put this in root's .bash_profile:

echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root
Access from `who | awk '{print $6}'`" me@xxxxxxxxxx

> -----Original Message-----
> From: redhat-list-bounces@xxxxxxxxxx 
> [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Anne Moore
> Sent: Friday, March 13, 2009 9:44 AM
> To: redhat-list@xxxxxxxxxx
> Subject: email when user su's to root
> 
> 
> HI All,
>  
> Does anyone know how I'd make an automatic email fly off 
> every time a user SU's to root? We're have security issues, 
> and we're needed to track it.
>  
> Thank you for your assistance with this.
>  
> Anne
> -- 
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux