Home >Operation and Maintenance >CentOS >How to change user password in centos

How to change user password in centos

王林
王林Original
2020-03-17 16:00:5126465browse

How to change user password in centos

Change the password directly

You can view the currently logged in user through whoami. Directly enter passwd and press Enter. Enter the password twice to modify the current username (the prompt all authentication tokens updated sucessfully indicates that the password modification is OK)

(Recommended tutorial: centos usage tutorial)

As shown in the picture:

How to change user password in centos

Change the password of a certain user

(note that administrator rights or this account are required)

As an administrator, you can directly change the password of an account without knowing the original password.

Format: Passwd Username

As shown in the picture, enter the password twice to confirm after pressing Enter

How to change user password in centos

## Recommended related video tutorials:

linux video tutorial

The above is the detailed content of How to change user password in centos. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn