Thursday, February 26, 2015

How to reset the permissions of the all installed RPM packages in Centos/RHEL/Fedora


If you run 777 permission by mistake on server then you can restore default permission by running below commands .



#for p in $(rpm -qa); do rpm --setperms $p; done

#for p in $(rpm -qa); do rpm --setugids $p; done




!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

No comments:

Post a Comment

Installing Jenkins on RHEL 8 is a straightforward process. Here's a step-by-step guide

Introduction  Jenkins is an open-source automation server widely used for continuous integration (CI) and continuous delivery (CD) pipelines...