Hello and welcome to this. Cali fundamentals lesson.
I'm very excited to be here with you today. So
what we're getting ready to jump into and what
we're getting ready to discuss is how did you manage users in
Cali? And so you may be asking yourself? You know, I know
that I come in as root. I know that that's the default user. What
if I want to add a user for day-to-day use or what if I
want to add a user for testing purposes. Well,
now's the time to discuss that so our lessons
lesson objectives today is to walk away
with a high level ability to check current users and groups.
And so again, you know, we just want to know what's on the
system and then the ability to add and delete users. So
this isn't a long lesson and we've just got some high points
to touch on. So, let's Jump Right In
So when we're wanting to check users and groups and and as
they are in the Cali distribution, you're essentially going to
be going to this Etsy password file. So you'll
go to the Etsy directory and there's a file there called past WD
and what you can do is you can run concatenate against
that or the group file and
it'll give you these outputs here. So you'll notice on this
end. We went to the Etsy directory using
that CD command. And then from there what you'll
do is you'll notice that we ran cap password. Now, if
you look over to the left of this line You'll see
that we've got sis and Ben and Damon and
root. These are all users on the system
and some of these are running, you know in some of
these areas with no login permissions as it states over here and
so we can't log into those users. So they're they're really
for service purpose or some other purpose. And then when
we did the same thing with the group file, you'll notice here.
We ran Kat against group in that same Etsy
folder. It shows us again the current
Groups that are in our distribution so not
a lot there. It's really just, you know
going to that particular file and being able to see what's on the
system. So as you continue
to Linux or if you use it day to day and you feel
maybe there's a user on the system that you need to check into
or that you may not have been aware of or if you just check regularly, you
can use these two locations to give you a better idea of
you know, what's going on in your distribution or
to ensure that you've you know added a
user correctly. So let's go ahead and talk about that for a
moment as well. So when we look at adding and deleting users, which
you've got here is the ad user command and the
user delete command or Dell command and that here this
is just where you replace username with
the actual username. So as you can see here, we were still in that
Etsy folder and we were able to execute the ad user
command and we added a test user and it went
through each of these areas, you know describing what
was adding the user adding the group it created a home directories
you can see here and then it asks us
for a password which we just did test in this case and then
it asks for all this information to describe the user
and then at the end it designates whether or not it's
Correct. And so once you go through that process and we went back
to that past WD file and
we did a CAT again. We'll see here at the end that we now
have a test user. So when we then on the
other side of that run the user Dell command and we
put test on the end as you can see here. It
runs. It doesn't give you any feedback. If
the entry was correct, but then we'll see once we look in that
past WD file again
that the test user is no longer there.
So with those things in mind, let's just
do a real brief check on learning. So what is
the name of the file containing current users? And
so we talked about two types
of files that had some information in them which one
had current users.
All right, so looking at the options that we have here
SSH config is a config file.
So there's definitely not user information in
that. We didn't talk about a user's file
or anything of that nature. We did talk
about group. But again in this particular file, it
has group information and the
past WD file contained a
lot of information to include current users.
So if you guessed past WD you did
an excellent job there. So again, this was
a brief lesson. We didn't want to get too deep into, you know
users and adding into leading users. Just really a high
level way that you can start to manipulate users is if
you need them for testing purpose, or if you're going to create an
account for day-to-day purposes, and so we learn
how to check those users in groups using that past WD and
group files in the Etsy directory, and then
we talked about how to add and delete users. So
I want to thank you for
Wanting me today, and I look forward to seeing you
again soon.