All right, so the first question was to locate the man page that shows how to set a password.
Well, man minus k is a solution to this. So man minus k followed by the keyword that you
are looking for. Let's try man minus k password. And oh my goodness, here we see a lot of output.
And in this lot of output, well, you might be lucky and find immediately what you are
looking for. But that's not always the case. So sometimes you might need to filter down
a little bit. I would say go for a grab one if you think that the command that you're
looking for is in section one. Or go for grab eight if you think that the command you're
looking for is in section eight. It will not always be clear where you can expect the appropriate
command. But here we have found the passwd command in section one. So next, use a man
page for user ad and create a user with the name Anna. Well, man user ad. And I know we
haven't talked about creating users yet. But this exercise is not about creating users.
It's about using the man page. And here we can see how it works. So we have user ad and
login, where it's not that obvious that login is the name of the user that you need to create,
but it is. There are lots of options that can be used as well. I would also say give
it a try and go all the way down and see if there are some examples. But in this case,
we don't have examples because the user ad command is relatively straightforward. So
user ad Anna is what we are going to do. And then we need to set the password for user
Anna to password. So passwd Anna is the easy way to do that. Going once and going twice. You
can ignore the bad password message. That's just a warning informing us that the bad password is
going to be used. But we're in a root shell. And in a root shell, you do have the right to set a
bad password if you want to. Okay, last part of this lab was use vim to create a file with the
name users. So let me do that vim users and make sure that it contains the name Alex, Alexander,
Linda and Belinda. So Alex, Alexander, Linda and Belinda. And that is all. Escape, shift ZZ to get
out of here. And now we are done with this lab.