12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Verifying Software Files 133package you are trying to remove is also not needed, both must be removed at the sametime to resolve the dependency:rpm -e Even if the packages are not dependent on each other, multiple packages can be removedat the same time by specifying them in the same command separated by a space.If a configuration file is part of the package being removed but it has been modified, thefile will be renamed instead of removed with the .rpmsave extension, and a messagesimilar to the following is displayed:warning: /etc/sysconfig/samba saved as /etc/sysconfig/samba.rpmsaveVerifying Software FilesWhat if you want to verify that the files associated with a package haven’t been corruptedor compromised? For example, if you suspect your system has been accessed by a nonauthorizeduser, you can verify that the files from a package have not been changed withthe RPM verify feature. Of course, if the unauthorized user altered the RPM database, theresults may not be accurate. It is always best to back up to a known secure state of thefilesystem if you suspect foul play.5If the verify function is used, file properties such as file size, MD5 sum, file permissions,file type, and file ownership are compared to the original values stored in the RPM database.To verify that the files are associated with a package, use the following command:rpm -V If no output is returned, the files from the package have not been modified since installation.If a file, such as a configuration file, has been modified, the output is similar toListing 5.5.LISTING 5.5Output from rpm -V httpd.M.....T c /etc/httpd/conf/httpd.confTo verify the files from all the packages installed, use the rpm -Va command. The outputis similar to Listing 5.6.LISTING 5.6Sample Output from rpm -Va....L... c /etc/pam.d/system-auth..5....T c /etc/inittabmissing /usr/lib/mozilla-1.7.12/chrome/overlayinfo/browsermissing /usr/lib/mozilla-1.7.12/chrome/overlayinfo/browser/contentmissing /usr/lib/mozilla-1.7.12/chrome/overlayinfo/browser/skinmissing /usr/lib/mozilla-1.7.12/chrome/overlayinfo/cookie

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!