Red Hat 7.2 Red Hat 6.5 ROOT user password recovery

Source: Internet
Author: User

Red Hat 7.2

Start the interface first

Press ↑↓ key, enter the following interface, select the first item, press the E key to edit

Now the picture to find RO

Change to RW init=/sysroot/bin/sh

Then press CTRL X to start

It goes into emergency mode after launch.

Execute the change command after entering

#chroot/sysroot

#

Check if SELinux is off and the server will not start if it is not turned off

#getenforce

#Disabled

If the

#enabled

Executable

#vi/etc/selinux/config

Perform

: Wq

Save exit

Execute the Change Password command

#passwd

Enter Password two times

Tip All authentication Tokens updated successfully

Identify successful modifications

Subsequent execution

#exit

#/bin/sh Shutdown-r Now

Restart

Change Root password complete

Red Hat 6 Change root password

Press the ↑↓ key at startup,

Press E to edit

Select the second kernel to edit again by E

After the quiet, space 1, then enter.

Then press B to start

Enter single-user mode after booting

Perform

#passwd

Perform a red Hat 6 restart command

#reboot

Red Hat 6 root password is ready to be modified

Red Hat 7.2 Red Hat 6.5 ROOT user password recovery

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.