Forum: CFEngine Help
Subject: how to include username in file change detection policy
Author: pamelas
Link to topic: https://cfengine.com/forum/read.php?3,24807,24807#msg-24807
I'm have a file change detection policy that alerts me each time a file has
been modified, removed, etc from my machines. But I need to include the
username of the person that made the file change on the system.
Is there a way to include the username in the email alert? And also the lines
that were changed?
Below is my policy:
thanks!
Pam
bundle agent detect_file_change
{
files:
"/etc" -> "my-changes"
changes => scan_files,
depth_search => recurse("inf");
}
body changes scan_files
{
report_changes => "all";
update_hashes => "true";
}
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine