The username of users on your CentOS 7 VPS can be easily changed using command-line via SSH, or the VPS console. There are three options, depending on which user you want to change the password for:
- your own password:
paaswd - the root password:
There are two options: the first option is to first switch to the root user and then change the password:or adjust the root password directly:su root passwdsudo passwd
Have you lost your root password? Then consult this article to reset your root password.
- the password of another user:Replace user with the actual username.
sudo passwd user
Should you have any questions left regarding this article, do not hesitate to contact our support department. You can reach them via the ‘Contact Us’ button at the bottom of this page.
If you want to discuss this article with other users, please leave a message under 'Comments'.

Comments