To be fair, no recovery action is required for non-recursive ownership change as the system just boots normally.
rpm --restore. Quote from
MISCELLANEOUS COMMANDS rpm --showrc shows the values rpm will use for all of the options are currently set in rpmrc and macros configu‐ ration file(s). rpm --setperms | --setugids | --setcaps PACKAGE_NAME obsolete aliases for --restore rpm --restore [select-options] The option restores file metadata such as timestamp, owner, group, permissions and capabilities of files in packages.
Of course it may not be possible to get superuser privileges, as
sudo probably don’t work after the owner has changed.
That should be runnable from a chroot, since the system won’t be bootable.