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

Unlock this course with a free trial

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

Password settings

Password settings

- [Instructor] Remember, root is all-powerful. And there are no restrictions on root whatsoever. So, root can change the password. So, the password for the user, in this case, has successfully been updated. Now, you can look at the password for the user by looking at etc or /etc/shadow. And that shows us the encrypted password for the user James. So, this is the encrypted password for the user James. There are various other options available. Once again, we can lock a user account. So if we say passwd -l james, that means that James has been locked which means that he can't log in to the system. So I'll ssh as James. Notice, permission is denied. Please try again. What I'll do now is unlock James. And you can log in. You can see once again that James is logged into the Ubuntu system. Current user account is James. Exit out. Lock his account again, same password. Can't log in. Unlock his account, and you can log in. Let's grep for his account again. Currently it's unlocked. I'll lock…

Contents