Root password cracking in linux Learning

Source: Internet
Author: User

Sometimes, when we forget the root password, this will bring us great inconvenience, but through some system settings we can eliminate the root password, but I think the premise is that you have to be able to access the root user.

Step into the topic!

1. Go to grub. First, let's take a look at the role of grub, which is explained in Baidu encyclopedia.

GNU grub ("Grub" for short) is a multi-operating system startup program from the GNU project. Grub is the implementation of multi-boot specifications. It allows you to have multiple operating systems in your computer and select the operating system you want to run when the computer starts. Grub can be used to select different kernels on the operating system partition or to pass startup parameters to these kernels.

How to access grub? Similar to our familiar bios, you can press any key to access grub.

After entering grub, you can select e to enter the editing status as prompted.

2. Then we can see this interface

3. Press the key e in the kernel column, and then you can enter this interface.

Just add the above content.

Then restart.

4. Enter the system and set the root password to null. The steps are as follows:

Run the vim/etc/passwd command first.

Then clear the password, as shown in

Root: delete a string of characters

5. Restart the terminal to set the root password. Finished!

Related Article

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.