How Linux root retrieves the password

Source: Internet
Author: User

How Linux root retrieves the password

First, retrieve the root password: 1.    boot up  Booting Red Hat Enterprise Linux Client  (... )  in 3 seconds ...  Press any key to enter the menu, 2.    Select the current boot entry, such as  Red Hat Enterprise Linux Client  (2.6.18-194.E15)   Press   "E" into the editing interface, (password protection can be set: refer to "linux root  Password Grup protection") 3.    the editing interface has three lines of options, select the  kernel  start option, press   "E" to enter the editing interface; 4.    the last side of the command line added   " single" (note the space before the single), enter return to the editing interface; 5.    continue to select the  kernel  start option, press "B" to start the single user mode; 6.    after entering the system, change password   "passwd root"  –->  enter root  password, restart, password modification is complete. Second, the precautionary method: 1. vi /etc/grub.conf2.  added    password --md5 $1$pp5eg$ under  timeout=5  s8ytueridzzl2kvjvmv.       Save to exit.   The function is to use grub  to change the password when password authentication is required to change the password.     Note: Where  $1$a26yf$VDyOb3O3IEWo3s9wRZjqF1  generation method: #grub-md5-crypt  Enter the password after the return, return, re-enter the password, Enter, generate the MD5 code of the password

This article is from the "Mq_douer" blog, make sure to keep this source http://douer.blog.51cto.com/6107588/1921587

How Linux root retrieves the 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.