Reset password linux CentOS7

ลำดับขั้นตอนการกู้รหัส root
Bypass root

  1. ต่อจอ และสั่ง Ctrl + Alt + Delete เพื่อรีบูทเครื่อง
  2. จะเจอกับหน้า Grubfile
  3. กด e เพื่อแก้ไข โค้ดด้านใน แก้ไขในบรรทัด “ro”file
  4. Change “ro” to “rw” and “add init=/sysroot/bin/sh” rw init=/sysroot/bin/shfile

Change root password

  1. In the single user mode, run the command as chroot /sysrootfile
  2. Finally, run the commands passwd root to change the root password.then enter passwordfile

 905 total views,  1 views today

Leave a Reply

Your email address will not be published. Required fields are marked *