- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Monitoring of system critical files
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
04-24-2001 07:10 AM
04-24-2001 07:10 AM
I have a question for you regarding the monitoring of critical or system application files locates in the following directories like
/usr/bin
/etc
My aim is to monitor the files located under these directories and look if any one of the users have changed any of the files. If so list the files and the user name. I know about the 3rd party software tool called TRIPWARE or COPS to monitor it, but my client wants it to be done through a shell script.
I had a idea to do a long listing and then look for the time stamps on the files. Any ideas or suggestions
Thnks in advance
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 07:18 AM
04-24-2001 07:18 AM
Re: Monitoring of system critical files
Doing a check on the timestamps won't be enough because they can always be changed with touch. The best way to do it, that I can think of, would be to calculate some sort of checksum based on the files in the directory at a certain point in time. I guess the checksum could be based on some sort of combination of all the file sizes in that directory or something like that (thats how a couple of virus scanners work). But thats a pretty simplistic view of checksums.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 07:27 AM
04-24-2001 07:27 AM
Re: Monitoring of system critical files
compare the files in question with cksum or sum
to determine if any chamges have occured. You can then look at the changed files with diff or
other tools if it is a binary file. You would have to periodically umount the snapshots and mount again to prevent the snapshot buffers from filling up.
My 2 cents...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 08:55 AM
04-24-2001 08:55 AM
Re: Monitoring of system critical files
Thnks for your response can you plz tell me the syntax of a checksum with respect to a file?
Thnks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 09:08 AM
04-24-2001 09:08 AM
Re: Monitoring of system critical files
Simply cksum file1 [file2 file3 ...]
man cksum for more details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 09:26 AM
04-24-2001 09:26 AM
Re: Monitoring of system critical files
Thnks
Shiv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 09:38 AM
04-24-2001 09:38 AM
Re: Monitoring of system critical files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 09:38 AM
04-24-2001 09:38 AM
Re: Monitoring of system critical files
To monitor things like this, you should look into RCS (Revision Control System). This allows you to set up certain files so that they have to be checked out before they are modified and then checked back in after they are modified. RCS is available from the HP-UX porting center and doesn't cost anything. http://hpux.cs.utah.edu/hppd/hpux/Users/rcs-5.7/
There is also a WebRCS available so that you can do stuff via a web browser. I'll see if I can find the link for it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 10:00 AM
04-24-2001 10:00 AM
Solutionex:
$ cksum file | cut -f1 -d" "
4294967295
You may take note of this value and if this changes you may use sendmail to give you an email to notify you.
-fnhalili
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2001 10:20 AM
04-24-2001 10:20 AM
Re: Monitoring of system critical files
http://www.sysadminmag.com/articles/2000/0002/0002a/0002a.htm
The original Web/RCS areticle was published in the Dec. 1998 edition of Sys Admin, but that edition is not completely online. If you want to download the source code, go to this link http://www.sysadminmag.com/code/ and then look for the 1998 table and click on December. It will download a tar.gz file that should have the source code.
Here are another couple of links to RCS and another RCS-like product called CVS.
http://www.gnu.org/directory/rcs.html
http://www.gnu.org/directory/cvs.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 06:29 AM
09-26-2001 06:29 AM
Re: Monitoring of system critical files
Checksums can be altered.
To check for file changes cryptography algorithms are required. RSA jointly developed md5 cryptography routine to produce a unique 129bit fingerprint of a file which todate has not been cracked. md5 can be downloaded from Sun and a number of other sites.
It would be nice if HP could develop a security product to check the system critical files. Tools are out there such as Tivoli Policy Director and Symantec ESM however they are expensive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 07:03 AM
09-26-2001 07:03 AM
Re: Monitoring of system critical files
I have not messed around with this enough, but I know it does have checksum checking ability and it is free with HP-UX 11i. (not sure about the other versions) I'd take a look at that if you can. We are installing it on our 11i systems by default but haven't used it much yet.