Using auditd
sudo auditctl -w /etc/passwd -p wa -k passwd_monitor
sudo auditctl -w /etc/group -p wa -k group_monitor
sudo auditctl -w /var/www -p rwxa -k web_filesView Change Logs
sudo ausearch -k passwd_monitorUsing inotify (Alternative)
sudo apt install inotify-tools
inotifywait -m -r -e modify,create,delete /etc/nginx