The rpm command has modes to set the permissions and ownership of every file in every package back to the way they were when newly installed.
for p in $(rpm -qa); do rpm –setperms $p; done
for p in $(rpm -qa); do rpm –setugids $p; done
Go have a cup of coffee. Problem fixed.