You are viewing the article How to Change Root Password in Linux at Lassho.edu.vn you can quickly access the necessary information in the table of contents of the article below.
This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.
The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.
This article has been viewed 14,239 times.
This wikiHow teaches you how to change the root password in Linux, if you remember your current password or can’t remember your root password.
Steps
In case of remembering the current root password
- If you’re not using a desktop environment, you’re already using the Command Prompt, so proceed to the next step.
- If you typed the wrong password, run su and try again.
- Passwords are case sensitive.
In case you do not remember the current root password
- If you can’t press E before the Grub menu disappears, you’ll need to restart your computer and try again.
- This method can be applied with most popular Linux distributions (such as Ubuntu, CentOS 7, Debian). There are many Linux distributions available, some of which are unknown. If you can’t switch to single-user mode this way, you’ll need to visit your distro’s website for instructions specific to your system.
- In CentOS and some other distributions, the command line may start with linux16 instead of linux .
ro init=/bin/bash
.
- Notice the space between
ro
andinit=/bin/bash
.
Advice
- Your password should consist of 8 or more characters, a combination of letters (upper and lowercase), numbers, and special characters.
- To change the password for another user, use su as root and type passwd <username> .
This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.
The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.
This article has been viewed 14,239 times.
This wikiHow teaches you how to change the root password in Linux, if you remember your current password or can’t remember your root password.
Thank you for reading this post How to Change Root Password in Linux at Lassho.edu.vn You can comment, see more related articles below and hope to help you with interesting information.
Related Search: