> I would like to know how can I watch my server and log changes being > made to specific folder or files. What time the change was made, which > user made it etc. > > I looked at auditd but it looks so confusing.
you can write a small application using inotify API ( man inotify) to monitor file changes. It uses auditd, and provides simplified interface on top of it. /Lalit On Tuesday, July 8, 2014 4:18 PM, Vivek Kapoor <[email protected]> wrote: On 2014-07-08 12:39, Amit Sharma wrote: > Hi, > > Recently one of the key config file of my application running on Linux > box was changed by some user 'accidentally". > > I would like to know how can I watch my server and log changes being > made to specific folder or files. What time the change was made, which > user made it etc. > > I looked at auditd but it looks so confusing. > > Any idea about any other possible solution? If there is a central > logging for all my server "changes" it will be even better! An alternate solution is that you can use git to manage the entire configuration (/etc or any other directory). You can just do a git init in /etc and then add the files to the repository and commit them. You can create a process through which any change done is committed, and since now the files are version controlled you can revert to any of the previous versions without any difficulty. Regards Vivek http://exain.com _______________________________________________ Ilugd mailing list [email protected] https://lists.hserus.net/mailman/listinfo/ilugd _______________________________________________ Ilugd mailing list [email protected] https://lists.hserus.net/mailman/listinfo/ilugd
