How do I reset the root user account password forgotten in CentOS/RHEL 7? (1)

Source: Internet
Author: User

How do I reset the root user account password forgotten in CentOS/RHEL 7? (1)

Have you ever encountered this situation: cannot you remember the user account password on Linux? If you forget the root user password, the situation is even worse. You cannot perform any changes for the entire system. If you forget the user password, it is easy to use the root account to reset the password.

But what if you forget the root account password? You cannot use a user account to reset the root account password, because the user account is generally not authorized to perform such tasks.

Reset the root user account password forgotten in CentOS 7 and RHEL 7

In case you encounter such a situation, this Guide Article can help you get rid of such difficulties. This article describes how to reset the password of RHEL 7 and CentOS 7 accounts.

Early in the morning, I opened the RHEL 7 Linux server and found it locked. Either I screwed up the password I changed the previous night or I forgot it.

Forgotten Root Account Password

So how can I be better now? I should log on using a user account. Should I try to change the root account password?

Only the root user can set the password


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.