To be fair, no recovery action is required for non-recursive ownership change as the system just boots normally.
1 Like
Check out rpm --restore
. Quote from man rpm
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 su
and sudo
probably donât work after the owner has changed.
That should be runnable from a chroot, since the system wonât be bootable.