Crack the root password of CENTOS6
Enter single-user mode
Press any key on the following screen after reboot
After entering this interface, "a" is in the following interface
Enter 1 to enter single user mode 1 preceded by a space
Press ENTER to enter the command line to execute the passwd command directly modify, and then execute the command init 5 into the graphical interface
Hack CentOS7 root Password method one
Pause startup of any key at startup
Press the E key to enter edit mode
Move the cursor linux16 the beginning of the line, add the kernel parameter Rd.break
Press CTRL + X to start
Mount–o remount Rw/sysroot (re-read and write to mount the root by looking for/dev/sda2 to see/Where the path, the original root file is only read-only way, to add permission to change the password)
Chroot/sysroot (Cutting root)
passwd root (reset password)
Touch/.autorelabel (new file This step is required)
Exit (Exit)
Reboot hack CentOS7 root password method two
Pause startup of any key at startup
Press the E key to enter edit mode
Move the cursor linux16 start line to RW init=/sysroot/bin/sh
Press Ctrl-x to start
Chroot/sysroot
passwd Root
Touch/.autorelabel
Exit
Reboot
Linux hack password