Linux topic three How to silently crack root password (take redhat7.2x64 for example)

Source: Internet
Author: User

The root user has the highest privileges on the Linux system. Master the root password, the difference can be arbitrary on the Linux system, of course, the root user is not the most privileged users.

But mastering the root password is basically enough for us to use. This article will show you how to silently hack the root password.

1. First restart, press ↑↓ key, enter the following interface, select the first item, press the E key to edit.

2. In this interface continue to page down, find the RO this item, and modify, change to RW init=/sysroot/bin/sh

3. After the change, press CTRL+X to enter emergency mode principle: Start a shell environment, the system does not really start.

Change root, change password

The default root of the system is/. This is changed to/sysroot.

chroot command to run the directive at the specified root directory

chroot , i.e. Change root directory (Change Root directory). In a linux System, the system's default directory structure is a /, which starts with root (root ) . After using chroot , the directory structure of the system will be used as / location in the specified location

After the chroot command, the system reads directories and files that are not under the old system root but under the new root (that is, the new location that is specified).

Note: The selinux is closed when recovering the password

4. Restart the system: first exit the current root, execute/bin/sh shutdown–r now, after entering the following system, the change password has been completed. The following is the login process with the new password.

Haha, is not very flashy, of course, this is a bit of violence, is actually reset password, follow-up may give, directly get root password, do not crack, please look forward to.

Linux topic three How to silently crack root password (take redhat7.2x64 for example)

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.