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)
- Error connecting to MySQL: Cant connect to MySQL server (10060)
- 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
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
- IDGlobal teaches you to disable ICMP protocol on CentOS
- How to modify the remote port in CentOS 7 and 8
- What is the meaning of servererror500 (there is servererror500 solution)
- Several common server port numbers and corresponding services are organized
- How to block foreign IP access on Linux server?
- windows timer task settings (with shutdown restart command)