Fedora is not booting up after I took ownership of systems drive

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

       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.