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