Cron job to notify modification of password file in Linux

D

deb73268

Guest
I want to create a cron job which detect any kind of modification done in the password of a user named "admin"./etc/shadow is the general location for the password in linux so any modification or deletion or nullification of the password file should send an email notification abc say with the information of user who modified the password file.

Kindly suggest some sample cron job codes for this.
 


If You look at securing files issue from broader perspective, You may find usefull this: how-to-use-tripwire-to-detect-server-intrusions-on-an-ubuntu-vps (just paste in google).
 

Members online


Latest posts

Top