Linux-password-reset-root

From I Will Fear No Evil
Revision as of 19:24, 17 May 2023 by Chubbard (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Really interesting way to reset a forgotten root password on Rocky. The assumption is that this will also work for other RHEL releases, although it has not been tested at all.. The link is from reset for root user

chroot /sysroot
passwd root

Wait and confirm that you get all authentication tokens updated successfully