On 02/13/2012 11:43 AM, no-re...@cfengine.com wrote:
> 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?

I don't think that cfengine alone will be able to ferret all that
information for you. If you can get all of the above information I am
certain you can instruct cfengine to do so as well.

If a file is edited outside of cfengine how would you normally know the
username that changed the file and what specific lines were changed?

If all changes made are kept in version control you could get the
desired information from there. You might be able to write an agent that
hooked into something like inotify (though I am not even sure you can
ferret all the info you want from inotify either).




Nick Anderson <n...@cmdln.org>
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to