UNIX / Linux: Send E-mail When sudo Runs
To send an email when the sudo command is executed on a UNIX/Linux system, you can set up an email notification using the sudoers configuration file. Here are the steps to do it: Edit the sudoers configuration file by running the following command: sudo visudo This will open the sudoers file in the system’s default … Read more