Linux Superuser password cracking and protection through grub

Source: Internet
Author: User

Password cracking through grub

Start the computer and enter the following interface

Select the selected option and press e.

Select the selected option and press e.

Insert single into the original sentence by modifying the cursor below)

After modification, press enter, press B to enter the following interface, and enter the passwd root command, enter the new password and enter the new password again, and press enter to confirm

Restart your computer to log on with the new password.

Protection: set a password for grub

Open the terminal and enter grub

Press enter and enter md5crypt.

Press enter, enter the desired password, and press enter to get "ciphertext"

Open another terminal window

Enter cd \ boot \ grub

Edit the menu. lst file in the grub directory --> command: vi menu. lst

Input an empty line on the first title:

Passwd -- md5 ciphertext

Save the disk and exit, so that grub is encrypted

To restart the computer and try grub again to crack the superuser password, enter the password

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.