Enforcing No Shared IDs

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Time
21 hours 25 minutes
Difficulty
Intermediate
CEU/CPE
21
Video Transcription
00:00
>> Hey there, Cybrarians.
00:00
Welcome back to the Linux+ course here at the Cybrary.
00:00
I'm your instructor Rob Goelz.
00:00
In today's lesson, we're going to be
00:00
discussing enforcing no shared IDs.
00:00
Upon completion of today's lesson,
00:00
you're going to be able to understand
00:00
the importance of ensuring that we
00:00
don't have user or group ID shared on our systems.
00:00
We're going to explain where we can look to
00:00
see if shared IDs can be found.
00:00
In Linux, every user and group have to have a unique ID.
00:00
We know from experience
00:00
now and going through the course that are
00:00
user IDs are a UID and group ID is a GID, UID or GID.
00:00
If two users or groups share the same ID,
00:00
then there's really no way to account
00:00
for the actions that might be taken.
00:00
Users could have access to another user's files,
00:00
or a group might have access to
00:00
a different groups files or resources because it
00:00
all looks in the Linux system as if it's
00:00
the same user or same group.
00:00
Additionally, we may have auditing policies in
00:00
place that are tied to the UID or GID.
00:00
If we have shared UIDs or shared GIDs it
00:00
effectively is breaking our security measures
00:00
that we've put in place.
00:00
We can find shared IDs by
00:00
looking at some of
00:00
the files that we've already discussed.
00:00
In Module 8, we discussed users and groups,
00:00
and we talked about file locations in that module.
00:00
To find duplicate user IDs,
00:00
we can search in the etc password file.
00:00
If we look in etc password,
00:00
the third column contains the user ID or the UID.
00:00
We can see on the right-hand side,
00:00
the upper image there,
00:00
we see test x 1,002,
00:00
1,002 that third column
00:00
is the user ID for that test user.
00:00
If we're looking for duplicate group IDs,
00:00
we can searching the etc group for a file.
00:00
In etc group we're looking at column three as well.
00:00
What we're looking for there,
00:00
we can see that on the bottom image.
00:00
Adm X 4, the number four,
00:00
that's the group ID for
00:00
the adm group and so on and so forth,
00:00
4, 5, 6, 7, 8,
00:00
9, 10, and 12.
00:00
With that, in this lesson,
00:00
we covered the importance
00:00
>> of ensuring IDs are not shared.
00:00
>> Then we talked about where to find shared IDs,
00:00
looking at etc password for
00:00
UIDs and etc group for group IDs.
00:00
Thanks so much for being here and I look
00:00
forward to seeing you in the next lesson.
Up Next