In linux, the root password is missing. Solution: linuxroot
1: Open the VM, click 'start,
2: When the above interface is displayed, enter 'I' on the keyboard to display the grub interface:
3: Enter e on the keyboard. The following page is displayed:
4: select the second line (kernel ......)
5. Enter e on the keyboard. The following page is displayed:
6: After rhgb quiet, add space, Number 1, space, and single and press Enter.
Here we use space and number 1 as an example:
Then, the system automatically returns to the editing interface of the previous layer, and then directly press the B key to restart in simple mode.
The restart process is omitted here.
After the restart, you can change the password on the following page.
Enter passwd and press enter to change the password. By default, press enter to directly change the password of the root Super management user. Of course, you need to change the password of other users, after passwd, directly follow the user name to change the password.
Run exit to restart the instance.
Restart interface:
Ouye, the login is successful.
The password must be saved later.
This article is based on the "wanggong Xiaohai" blog
What should I do if I forget the linux User Password and root password?
Linux root has the highest power. Once the root password is forgotten or stolen, it is a headache. How can I retrieve the root password? I will summarize it as follows:
(1) Linux system password cracking
1. Press e in the grub option menu to enter the editing mode.
2. (Press e) to edit the kernel line to add/init 1 (or/single)
3. Press B to restart
4. Run the following command
# Vi/etc/passwd enter the passwd file
Delete x from the first line of root: X: 0..., change it to root: 0..., save and exit!
The root password is blank when you enter the system.
Change Password
# Passwd root
What should I do if I forget the linux User Password and root password?
Linux root has the highest power. Once the root password is forgotten or stolen, it is a headache. How can I retrieve the root password? I will summarize it as follows:
(1) Linux system password cracking
1. Press e in the grub option menu to enter the editing mode.
2. (Press e) to edit the kernel line to add/init 1 (or/single)
3. Press B to restart
4. Run the following command
# Vi/etc/passwd enter the passwd file
Delete x from the first line of root: X: 0..., change it to root: 0..., save and exit!
The root password is blank when you enter the system.
Change Password
# Passwd root