From the course: Linux CentOS 7: User and Group Management

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Manage user passwords

Manage user passwords - Linux Tutorial

From the course: Linux CentOS 7: User and Group Management

Start my 1-month free trial

Manage user passwords

- [Narrator] The main tool for managing passwords and links is the password command. If we type in password, without any arguments it asks us twice for a new password and then changes it in Etsy shadow. However, an administrator can use a tool to lock and unlock passwords, as well as set some account aging information. Let's cover some of the password commands most common options. Dash d deletes a users password. This is basically the state of a newly created user, without a password. Dash e expires a password. A user with an expired password will need to reset it at the next login. Dash l locks the password. Note that it only locks the password. So if a user had valid SSH keys, they could login anyway. Dash u unlocks an account password. And lastly, dash capital s outputs the password status. In a terminal, let's create a username Brian and give him a password. Type in sudo space useradd space brian and hit enter. And then give him as password by typing in sudo space passwd space…

Contents