1. 程式人生 > >linux 開機修改root使用者密碼

linux 開機修改root使用者密碼

Reboot to revise the password

這是針對root使用者開機忘記登陸密碼的一個重置密碼方法

一 enter

Pressing the button enter in the reboot or start the Linux system 在這裡插入圖片描述

二edit

According to the declare , we press the button e to edit. 在這裡插入圖片描述

三 select the kernel to edit

Use the button up or down to select the item ,we select the kernel and then press the button e

to edit 在這裡插入圖片描述

四 edit

Appending the 1 or s (single) to the cursor . 在這裡插入圖片描述 Pressing the button enter to complete the edit .

五 into security mode

在這裡插入圖片描述 Pressing the button b to start the Linux entering the security mode . 在這裡插入圖片描述

六 allocate the the password

在這裡插入圖片描述

七 change the run level to reboot the system

Displaying the current level 在這裡插入圖片描述

Command : init 3 (convert to normal mode) 在這裡插入圖片描述 Input you password enter Linux 在這裡插入圖片描述