Shell script – Logged in mail
This is the script used to send email when any user logged in to the Linux server. Step 1 : Login to the serverStep 2 : vi .bash_profileStep 3 : Copy paste the script below echo ‘ALERT – Root Shell Access (root@IP ADDRESS) on:’ `date` `who` | mail -s “Alert:… Continue Reading Shell script – Logged in mail