- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Proactively Email when I file is edited
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 02:32 PM
03-17-2005 02:32 PM
I need to nominate certain files as CRITICAL files (eg. /etc/passwd)and these files need to be monitored in such a way that when ever a change happens to these files, an email needs to go to a group. That is if somebody does a vipw and saves some changes, an email needs to go out saying that the user Foo chaned the file /etc/passwd at such and such time. Please note that I do not want to do a time stamp check by listing the file.
I Will greatly appreciate any help.
Regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 05:05 PM
03-17-2005 05:05 PM
Re: Proactively Email when I file is edited
you may like to run tripwire which was previously free but now a commercial product:
http://www.tripwire.com/
or visit AIDE:
http://www.cs.tut.fi/~rammer/aide.html
which is a free replacement for Tripwire.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 06:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2005 03:19 AM
03-21-2005 03:19 AM
Re: Proactively Email when I file is edited
Have a script run every 1/2 hour or so, which compares the real files against the copies.
When it sees a difference, send the email, then copy in the new file as an update.
This isn't very elegant and won't tell you who was in there; and if timing is critical it won't catch activity between the 1/2 hour checks.
But it's a quick no-cost solution.
I do this so I can track changes to critical files while I'm away on vacation etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2005 03:33 AM
03-21-2005 03:33 AM
Re: Proactively Email when I file is edited
Fred
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2005 08:25 AM
03-21-2005 08:25 AM
Re: Proactively Email when I file is edited
With little modification you can add the 'mailx' command to this script and in addition to RCS control you will have emails as well.
This provides an additional layer of what you are looking for but the script can be easily modified to just send email
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2005 08:28 AM
03-21-2005 08:28 AM
Re: Proactively Email when I file is edited
(I'm getting senile...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2005 12:20 AM
03-22-2005 12:20 AM
Re: Proactively Email when I file is edited
any of the answers above solve your problem?
Some feedback would be great.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2005 04:00 AM
03-22-2005 04:00 AM
Re: Proactively Email when I file is edited
Thanks for all your responses. Rick's VI warpper works well for me. :) Thank you rick.
But, is there anyway to track copying, moving of flies without tripwire?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2005 04:42 AM
03-22-2005 04:42 AM
Re: Proactively Email when I file is edited
then
read -r filename
do
if [ -f $filename ]
then
# check it out with Rick's shell or something
else
# send a nasty email about the missing file
fi
done < database_file
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2005 05:02 AM
03-22-2005 05:02 AM
Re: Proactively Email when I file is edited
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2005 05:10 AM
03-22-2005 05:10 AM
Re: Proactively Email when I file is edited
I mentioned passwd as an example. I do have some other files which I need to monitor proactively and be notified when some change happens.
I do understand that for a complete and foll proof file Monitoring I need Tripwire. Thanks guys for all your wonderful suggestions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2005 05:18 AM
03-22-2005 05:18 AM