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
- The php domain name points to ip, how to use the specified ip address to access a server in the url request domain name in curl mode
- How to purchase a dedicated server
- Error connecting to MySQL: Cant connect to MySQL server (10060)
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
- linux delete folder command
- How to block foreign IP access on Linux server?
- What to do if a cp: omitting directory error occurs in Linux (detailed solution)
- IID.HK shares some commonly used IT network online detection websites
- ubuntu 20.04 newbie installation tutorial
- Several common server port numbers and corresponding services are organized