Helper program/script to create a changelog for a server that runs on logout?
I am working on getting our Linux (and eventually Windows if possible) systems setup so that we can monitor administrative changes and have a history of them to refer to. Currently, I have a pretty good setup going with etckeeper, logwatch, and mercurial keeping track of installed packages, /etc, etc.
I would like to make this just a bit more robust by nagging any admin when they logoff with a message that asks them if they would like to create a changelog for what they just did on the server. A "no" answer would continue the logoff process and a yes answer would take them to their default edit where they could enter whatever they wanted about what they just changed on the system. The changlog helper would then add some standard formatting to their comments (add a date/time, username, indent, rewrap to 70 chars per line, etc.) and prepend that to a file somewhere on the system. I would then include that changelog in the monitoring setup I have already which would result in it being version controlled and sent to a centralized location. I am envisioning something that would look and work very much the way the commit/comment feature works with mercurial/git/svn, except the comment gets formatted different and saved to a file locally. I realize something like this probably doesn't exist, so I would also be looking for pointers on how I might script it. I have the skill to handle the formatting, writing to the changelog file, etc. My uncertainties arise when I consider how I might hook this into the logout routine and default editor of the user. Also, how would I know to run the hook for a real user but not for something like sftp/scp, etc. Thanks. |
Quote:
Quote:
Quote:
Quote:
* Also since this is not about Linux Security I'll move your thread to the Linux General forum or any other forum if you select a fitting one. |
All times are GMT -5. The time now is 07:46 AM. |