CentOS7 reset/change password

CentOS7 change password

  1. After entering the startup interface, press E to enter the editing state
  2. Add rd.break after UTF-8
  3. Press CRTL+X to start single-user mode
  4. Enter the following command to modify
    mount -o remount,rw /sysroot
	chroot /sysroot
	passwd root
	touch /.autolabe
	exit
	reboot

Guess you like

Origin blog.csdn.net/jinba225/article/details/117674921