In linux, the root password is missing. Solution: linuxroot

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.