Rhel6 crack the root password

Source: Internet
Author: User
Method 1. add rwsingleinit/bin/bash to the kernel option at startup, and enter key B to enter the single-user mode passwd. enter the password ctrlaltdelete twice to restart. Then, enter passwd in RHEL5, the system did not respond ;...

Method 1. add rw single init =/bin/bash next to the kernel option at startup, then enter key B to enter single-user mode passwd, enter the password twice, press ctrl alt delete, restart, and then use RHEL5 then, input passwd, the system did not respond; remount the root partition; access to the sub-/bash shell still does not work. Method 2. the steps for starting the system are the same as those for RHEL5. enter setenforce 0 to make SELINUX in the warning state, and then enter the password twice. then, restart the system. Method 3 is OK. at the same time as the RHEL5 step, enter the single-user mode, and then enter: vim/etc/shadow to edit the file used to place all user passwords in the system. then, the second column of the following line is root: $6 $ hAp. jiX. p1h0cqbX $ skzofayl4pborlcbasqaayclx1_xksclyi. fyboYKRfjXGYuEziJZ0h0ejA5zi9xHt0/kGNsQDzz34wrrAJv1: 15184: 0: 99999: 7 ::: (delete the second column and click OK) in this way, the system root has no password!
This article is from the "Beat Yourself" blog

Related Article

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.