How do I restore and accidental chmod (or chown, chgrp) of root directory?
Solution 1:
For rpm based distributions it's easy to reset all managed files back to the installed state.
rpm --setugids -a # To reset ownership
rpm --setperms -a # To reset permissions
Replace '-a' with package name(s) to limit reset.