From the course: Practical Linux for Network Engineers: Part 1

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Passwords

Passwords

- [Narrator] To change passwords, you use passwd or password. When you root, which I am at the moment, I can change the password for any user on the system. If you just say standard user, such as David, you'll be able to change your own password, and not the password of another user. So I am back to being David. If I use this command, I'm off to enter my current password, and then I can change my password but I can't change the password for a user such as James without adding sudo to the beginning. In that case, I can change the password for James or I can switch to being root. And now, because I'm root, I can change the password for James, and simply change it that way. Now again, the password for the user is not stored in this file, we only see an x as the placeholder for the password. Passwd --help shows us various options for setting passwords for users. We have standard options that you get on Windows as an example, like setting the maximum number of days before a password needs…

Contents