Linux password recovery rescue mode

From Ever changing code
Revision as of 23:53, 20 November 2019 by Pio2pio (talk | contribs) (Created page with "== RHEL 8 == This process should work for the most of distributions: # Edit kernel boot in Grub by pressing <code>e</code> # <code>ctrl+e</code> go to end of the line remove <...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

RHEL 8

This process should work for the most of distributions:

  1. Edit kernel boot in Grub by pressing e
  2. ctrl+e go to end of the line remove ro crash and add rd.break enforcing=0
  3. ctrl+x start the system
  4. Remount root fs mount -o remount,re /sysroot
  5. Switch into chroot /sysroot
  6. Reset password passwd
  7. Enable SELinux relabeling touch /.autorelable
  8. Exit shell exit