Linux password recovery rescue mode
		
		
		
		
		
		Jump to navigation
		Jump to search
		
		
	
RHEL 8
This process should work for the most of distributions:
- Edit kernel boot in Grub by pressing e
- ctrl+ego to end of the line remove- ro crashand add- rd.break enforcing=0
- ctrl+xstart 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