![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Uncompress a gzip and bzip file using java on unix solaris environment | wadhwa.pooja | High Level Programming | 0 | 10-14-2009 09:49 AM |
| Solaris 9 Auditing | dxs | SUN Solaris | 3 | 11-24-2008 08:19 PM |
| how to enable file auditing | skully | SUN Solaris | 2 | 06-09-2008 01:53 PM |
| solaris BSM and Auditing | skywalker850i | UNIX for Dummies Questions & Answers | 18 | 03-02-2008 09:22 PM |
| File auditing | aladdin | UNIX for Dummies Questions & Answers | 2 | 02-22-2007 12:35 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
File Auditing in Sun Solaris environment
Hi All,
I have a requirement to report us on changing a group of static files. Those are the binary files that run in Production every day. Due to the in sercure environment situations, I found many are indulging in there own changes to the binaries by doing some changes in the souce code. We have decided to have an audit system for all those files and report a group(send email) on changes in the files we are looking for. I searched a lot and got the below link: Linux audit files to see who made changes to a file But, this needs system admin to enter the picture. Please let me know, is there a way/script to do the same. The environment is Sun Solaris E20K. Regards, Mohan Kumar CS |
|
||||
|
Can you not prevent writing the binaries? chmod 711 the files, then change the owner of the file to root or some other similar userid.
Otherwise, how can you know absolutely that the binaries you have out there are the right ones? As soon as you create the file, another user, in 5 seconds, could overwrite it. Assuming you can know, which I don't believe, use cksum to create a file: Code:
cd /binary/directory cksum * > ~/mycksum Code:
cd /binary/directory cksum * > ~/testcksum diff ~/testcksum ~/mycksum > badfiles if [[ $? -eq 1 ]] ; then /usr/bin/uuencode badfile badfile | /usr/bin/mailx -s 'binary file change' me@comp.com fi |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| file audit |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|