Linux password cracking

Source: Internet
Author: User

After Linux is installed, there will be a root user. So how can I change the root user password without knowing the password?

In this system, the RedHat Linux installation environment is VMware 6.0 guided by grub.

The method is as follows:

1. Press "E" on the grub boot interface to enter the grub editing mode.

2. Select the second option in edit mode, that is, "kernel/vmlinuz-2.4.20-8 Ro root = label = /". Then press "E" to edit this item.

3. Add "single" to the end (Note: There is a space in front ). Press enter and then press "B" to start the linux single-user mode.

4. Because it is in single-user mode, no password is required. After the boot is complete, at the prompt (note that the prompt is like sh-2.05b #, not the previous prompt) input: "passwd root" (passwd is the command to change the user password .). Then, modify the password as prompted. (Sometimes the system prompts bad password. It doesn't matter. The reason is that the password is too simple or a common word .)

5. Restart and enter normally. OK. The root password has been modified.

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.