Linux hack password

Source: Internet
Author: User

Crack the root password of CENTOS6

Enter single-user mode

Press any key on the following screen after reboot

After entering this interface, "a" is in the following interface

Enter 1 to enter single user mode 1 preceded by a space

Press ENTER to enter the command line to execute the passwd command directly modify, and then execute the command init 5 into the graphical interface

Hack CentOS7 root Password method one

Pause startup of any key at startup
Press the E key to enter edit mode
Move the cursor linux16 the beginning of the line, add the kernel parameter Rd.break
Press CTRL + X to start
Mount–o remount Rw/sysroot (re-read and write to mount the root by looking for/dev/sda2 to see/Where the path, the original root file is only read-only way, to add permission to change the password)
Chroot/sysroot (Cutting root)
passwd root (reset password)
Touch/.autorelabel (new file This step is required)
Exit (Exit)
Reboot hack CentOS7 root password method two

Pause startup of any key at startup
Press the E key to enter edit mode
Move the cursor linux16 start line to RW init=/sysroot/bin/sh
Press Ctrl-x to start
Chroot/sysroot
passwd Root
Touch/.autorelabel
Exit
Reboot

Linux hack 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.