How to reset the password after reinstalling the linux system

Because the default password after the system installation is lost, you need to change the password
. 1. Press e on the boot homepage
2. Find linux16....UTF-8, enter rd.break at the back, and become like this linux16...UTF- 8 rd.break
3. Press ctrl+x to run the kernel program to enter the emergency rescue mode
4.mount -o remount,rw /sysroot
5.chroot /sysroot
6.passwd
7. Enter the password, you need to confirm twice
8.touch /.autorelabel
9.exit
10.reboot

Guess you like

Origin blog.csdn.net/u014179640/article/details/109096984
Recommended