Hot Article
- Centos7 closes and restarts the system firewall and opens firewall ports
- How IID server uses Xshell to connect to Linux (centos) server
- BT panel forgets the background login URL, and the solution to the security entrance verification failure
- What to do if a cp: omitting directory error occurs in Linux (detailed solution)
- How to confirm whether the ip is blocked or polluted?
- How to change pycharm to Chinese (pycharm set Chinese detailed tutorial)
linux how to change the user password (linux command to change the password)
- Author:Sven
- Category:Server Maintain
- Release Time:2023-03-07
In Linux, to change the user password, you can use the "passwd" command. Please follow the steps below.
1. Log in to the system as the root user.
2. Execute the following command, where "username" is the user name to change the password.
passwd username
3. You will be prompted to enter a new password. Please note that the password must comply with the system password policy (such as length, case, special characters, etc.).
4、Confirm the new password, the system will ask you to enter the new password again to confirm.
5、On completion, the system will prompt you to change your password successfully.
Please note that if you are changing the password of the current login user, you can omit the "username" parameter. In this case, the system will ask you to enter your current password and ask you to enter a new password and confirm it.
Also, for system security, it is highly recommended to change your password regularly and to use a strong password to protect your account.
related topic
- What should I do if the proxy server link fails to respond?
- How to view file size in linux
- Windows Server system prompts that the account is disabled when accessing shares
- inuxfind-name fuzzy query
- ubuntu 20.04 newbie installation tutorial
- Expand the root directory space of the CentOS system, and expand the home directory space to the root directory