CentOS7root password cracking

Source: Internet
Author: User
Root Password cracking 01. press e to enter the menu editing mode 02. in the linux6 field, find the ro character and change it to rord. breakenforcing = 003. ctrl + x save and restart, and enter single user mode 04. go to the system root partition # chroot/sysroot

Root Password cracking

 

01. press e to enter the menu editing mode.

 

02. in the linux6 field, locate the ro character and change it to ro rd. break enforcing = 0

 

03. press ctrl + x to save and restart, and enter the single-user mode.

 

04. enter the system root partition

# Chroot/sysroot

 

05. modify the root password

# Passwd root

 

06. create a hidden file in the root directory. autorelabel (if you have added enforcing = 0 in the second step, no operation is required here)

# Pwd

# Touch/. autorelabel

 

07. exit and restart

# Exit

# Reboot

 

 

Reference:

Https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/sec-Terminal_Menu_Editing_During_Boot.html#sec-Recovering_Root_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.