Friday, October 14, 2016

Reset the permissions of all installed Programs

Reset the permissions of  all installed RPM packages

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

Above command combination will reset all the permissions to the default permissions under CentOS / RHEL / Fedora Linux.


No comments: