Difference between revisions of "Linux password recovery rescue mode"
Jump to navigation
Jump to search
(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 <...") |
(→RHEL 8) |
||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
# Enable SELinux relabeling <code>touch /.autorelable</code> | # Enable SELinux relabeling <code>touch /.autorelable</code> | ||
# Exit shell <code>exit</code> | # Exit shell <code>exit</code> | ||
Change target to rescue mode | |||
<source lang=bash> | |||
sudo systemctl rescue | |||
</source> |
Latest revision as of 23:15, 21 November 2019
RHEL 8
This process should work for the most of distributions:
- Edit kernel boot in Grub by pressing
e
ctrl+e
go to end of the line removero crash
and addrd.break enforcing=0
ctrl+x
start the system- Remount root fs
mount -o remount,re /sysroot
- Switch into
chroot /sysroot
- Reset password
passwd
- Enable SELinux relabeling
touch /.autorelable
- Exit shell
exit
Change target to rescue mode
sudo systemctl rescue