Tuesday, August 4, 2015

RHEL - Fixing permission of a package

Negative permission
misconfigured permissions is misconfigured not negative, unless proper permissions is positive

# man rpm

sets permissions of files in the given package.
# rpm --setperms PACKAGE_NAME
           
sets user/group ownership of files in the given package.
# rpm --setugids PACKAGE_NAME
           
fix permissions of all installed packages
# rpm --setperms -a

also you may use "verify" Yum Plugin
# yum install yum-plugin-verify
# yum verify <package-name>

verify all packages

# yum verify-all

No comments:

Post a Comment