1
00:00:06,580 --> 00:00:08,689
In this video I want
to tell you about users.

2
00:00:09,910 --> 00:00:15,470
A user on Linux is an entity that is used
to grant permissions to specific parts of the Linux operating system.

3
00:00:16,649 --> 00:00:17,879
And there
are pretty essentials.

4
00:00:18,500 --> 00:00:21,730
Users are used mainly by
services on the Linux operating system.

5
00:00:22,609 --> 00:00:28,579
And running services with a restricted user account avoids
running them with too many permissions as the root user.

6
00:00:29,320 --> 00:00:32,159
So you'll find that
many server specific users exist.

7
00:00:33,979 --> 00:00:38,974
People users on Linux are mainly used
for IT staff as end users don't

8
00:00:38,974 --> 00:00:43,969
normally log into Linux directly, but rather
to the applications that they are using.

9
00:00:44,509 --> 00:00:47,450
So on a normal Linux system
you won't find too many users.

10
00:00:48,170 --> 00:00:52,179
Let me show you how these users occur
on things that you are doing on Linux.

11
00:00:53,460 --> 00:00:57,200
So when I type psaox for
instance, then we can see all

12
00:00:57,200 --> 00:01:00,939
processes within the first column the
user that has started the process.

13
00:01:01,600 --> 00:01:08,069
Now I'm not interested in root and student, I'm interested
in SSSD right here. That's one of the system users.

14
00:01:08,670 --> 00:01:14,335
And if we scroll up a bit we
should see more of these system users like

15
00:01:14,335 --> 00:01:20,000
rtkit and like callord. These are user accounts
that have been created for these specific services.

16
00:01:20,900 --> 00:01:25,305
They are stored in the
file etcpasswd and they are the

17
00:01:25,305 --> 00:01:29,710
users that you will find
on top of the file.

18
00:01:30,349 --> 00:01:35,590
Now what do we find in this file? Now
that we are at it, let's talk about it.

19
00:01:35,590 --> 00:01:40,830
So here highlighted we have the LP users different
field. First field has the name of the user.

20
00:01:41,319 --> 00:01:46,640
Then we have an X that's a placeholder
where in the past an encrypted password was stored.

21
00:01:47,530 --> 00:01:52,750
Now we have the four which is the unique user id and
the seven which is the group that the user is a member of.

22
00:01:53,730 --> 00:01:56,370
Then LP
is full name.

23
00:01:57,030 --> 00:02:03,355
This is what we are talking about. The home directory is
set to var spool LPD and the default shell for this user

24
00:02:03,355 --> 00:02:09,680
is set to user has been no login which is good
because you don't want these system users to be ever logging in.

25
00:02:10,300 --> 00:02:15,634
Now of course you don't have to
remember all of this. Man 5 on

26
00:02:15,634 --> 00:02:20,969
passwd is giving the man page for
etc where all this information is documented.

27
00:02:22,129 --> 00:02:25,610
LS L also
shows user related information.

28
00:02:26,169 --> 00:02:32,780
So here we have that LS L where we can see that all vals
have a user that is owner as well as a group that is owner.

29
00:02:33,349 --> 00:02:39,879
In later videos you'll learn how these ownerships
are used for granting permissions to your users.
