modify the root password linux grub interface tutorial

Reprinted from: https://jingyan.baidu.com/article/a3aad71a18c2bcb1fb0096b8.html

 

Tools / materials

  • centos7 operating system

Method / Step

 
  1.  

    First start centos7 power, press the space below the graphical interface, the system stops at this interface, this interface is generally the default time is 5 seconds, to get the chance.

    modify the root password linux grub interface tutorial
  2.  

    Then press the "e" key to enter the edit option, wait screen appears press the key has been the final turn. Find linux16 ..... ro crashdernel = auto .... similar words.

    modify the root password linux grub interface tutorial
  3.  

    Ro then change to "rw init = / sysroot / bin / sh", press the key combination ctrl + x, operation of the system after a change.

    modify the root password linux grub interface tutorial
  4.  

    After the launch, enter the command "chroot / sysroot"

    modify the root password linux grub interface tutorial
  5.  

    Then enter "passwd root", set the user password, enter the same password twice.

    modify the root password linux grub interface tutorial
  6.  

    Then execute the command "touch /.autorelabel" writes system information.

    modify the root password linux grub interface tutorial
  7.  

    Then forced to restart the system until the system login screen to enter us to change a good password, you can log in successfully found. At this point the password change is completed.

    modify the root password linux grub interface tutorial
  8.  

Guess you like

Origin www.cnblogs.com/Ewige/p/12669096.html