WEBVTT - This file was automatically generated by VIMEO

0
00:00:00.400 --> 00:00:03.800
Hello and welcome to this. Cali fundamentals lesson.

1
00:00:03.800 --> 00:00:06.900
 I'm very excited to be here with you today. So

2
00:00:06.900 --> 00:00:09.400
 what we're getting ready to jump into and what

3
00:00:09.400 --> 00:00:12.500
 we're getting ready to discuss is how did you manage users in

4
00:00:12.500 --> 00:00:15.100
 Cali? And so you may be asking yourself? You know, I know

5
00:00:15.100 --> 00:00:18.200
 that I come in as root. I know that that's the default user. What

6
00:00:18.200 --> 00:00:21.100
 if I want to add a user for day-to-day use or what if I

7
00:00:21.100 --> 00:00:24.400
 want to add a user for testing purposes. Well,

8
00:00:24.400 --> 00:00:27.500
 now's the time to discuss that so our lessons

9
00:00:27.500 --> 00:00:30.300
 lesson objectives today is to walk away

10
00:00:30.300 --> 00:00:33.200
 with a high level ability to check current users and groups.

11
00:00:33.200 --> 00:00:36.100
 And so again, you know, we just want to know what's on the

12
00:00:36.100 --> 00:00:39.600
 system and then the ability to add and delete users. So

13
00:00:39.600 --> 00:00:42.300
 this isn't a long lesson and we've just got some high points

14
00:00:42.300 --> 00:00:44.500
 to touch on. So, let's Jump Right In

15
00:00:45.300 --> 00:00:48.400
So when we're wanting to check users and groups and and as

16
00:00:48.400 --> 00:00:51.100
 they are in the Cali distribution, you're essentially going to

17
00:00:51.100 --> 00:00:54.200
 be going to this Etsy password file. So you'll

18
00:00:54.200 --> 00:00:57.900
 go to the Etsy directory and there's a file there called past WD

19
00:00:57.900 --> 00:01:00.900
 and what you can do is you can run concatenate against

20
00:01:00.900 --> 00:01:03.800
 that or the group file and

21
00:01:03.800 --> 00:01:06.600
 it'll give you these outputs here. So you'll notice on this

22
00:01:06.600 --> 00:01:09.600
 end. We went to the Etsy directory using

23
00:01:09.600 --> 00:01:12.300
 that CD command. And then from there what you'll

24
00:01:12.300 --> 00:01:15.400
 do is you'll notice that we ran cap password. Now, if

25
00:01:15.400 --> 00:01:18.800
 you look over to the left of this line You'll see

26
00:01:18.800 --> 00:01:21.100
 that we've got sis and Ben and Damon and

27
00:01:21.100 --> 00:01:24.300
 root. These are all users on the system

28
00:01:24.300 --> 00:01:27.200
 and some of these are running, you know in some of

29
00:01:27.200 --> 00:01:30.700
 these areas with no login permissions as it states over here and

30
00:01:30.700 --> 00:01:33.300
 so we can't log into those users. So they're they're really

31
00:01:33.300 --> 00:01:36.600
 for service purpose or some other purpose. And then when

32
00:01:36.600 --> 00:01:39.200
 we did the same thing with the group file, you'll notice here.

33
00:01:39.200 --> 00:01:42.200
 We ran Kat against group in that same Etsy

34
00:01:42.200 --> 00:01:45.200
 folder. It shows us again the current

35
00:01:45.300 --> 00:01:49.000
Groups that are in our distribution so not

36
00:01:48.300 --> 00:01:51.000
 a lot there. It's really just, you know

37
00:01:51.300 --> 00:01:54.300
 going to that particular file and being able to see what's on the

38
00:01:54.300 --> 00:01:55.600
 system. So as you continue

39
00:01:56.200 --> 00:01:59.300
to Linux or if you use it day to day and you feel

40
00:01:59.300 --> 00:02:02.400
 maybe there's a user on the system that you need to check into

41
00:02:02.400 --> 00:02:05.800
 or that you may not have been aware of or if you just check regularly, you

42
00:02:05.800 --> 00:02:09.100
 can use these two locations to give you a better idea of

43
00:02:08.100 --> 00:02:11.300
 you know, what's going on in your distribution or

44
00:02:11.300 --> 00:02:14.600
 to ensure that you've you know added a

45
00:02:14.600 --> 00:02:17.100
 user correctly. So let's go ahead and talk about that for a

46
00:02:17.100 --> 00:02:20.800
 moment as well. So when we look at adding and deleting users, which

47
00:02:20.800 --> 00:02:23.200
 you've got here is the ad user command and the

48
00:02:23.200 --> 00:02:26.800
 user delete command or Dell command and that here this

49
00:02:26.800 --> 00:02:29.400
 is just where you replace username with

50
00:02:29.400 --> 00:02:32.200
 the actual username. So as you can see here, we were still in that

51
00:02:32.500 --> 00:02:35.600
 Etsy folder and we were able to execute the ad user

52
00:02:35.600 --> 00:02:38.400
 command and we added a test user and it went

53
00:02:38.400 --> 00:02:41.400
 through each of these areas, you know describing what

54
00:02:41.400 --> 00:02:44.800
 was adding the user adding the group it created a home directories

55
00:02:44.800 --> 00:02:47.200
 you can see here and then it asks us

56
00:02:47.200 --> 00:02:50.600
 for a password which we just did test in this case and then

57
00:02:50.600 --> 00:02:53.300
 it asks for all this information to describe the user

58
00:02:53.300 --> 00:02:56.000
 and then at the end it designates whether or not it's

59
00:02:56.100 --> 00:02:59.500
Correct. And so once you go through that process and we went back

60
00:02:59.500 --> 00:03:02.800
 to that past WD file and

61
00:03:02.800 --> 00:03:05.200
 we did a CAT again. We'll see here at the end that we now

62
00:03:05.200 --> 00:03:08.500
 have a test user. So when we then on the

63
00:03:08.500 --> 00:03:11.500
 other side of that run the user Dell command and we

64
00:03:11.500 --> 00:03:15.100
 put test on the end as you can see here. It

65
00:03:14.100 --> 00:03:17.400
 runs. It doesn't give you any feedback. If

66
00:03:17.400 --> 00:03:20.500
 the entry was correct, but then we'll see once we look in that

67
00:03:20.500 --> 00:03:23.200
 past WD file again

68
00:03:23.200 --> 00:03:25.700
 that the test user is no longer there.

69
00:03:26.700 --> 00:03:29.200
So with those things in mind, let's just

70
00:03:29.200 --> 00:03:32.400
 do a real brief check on learning. So what is

71
00:03:32.400 --> 00:03:35.900
 the name of the file containing current users? And

72
00:03:35.900 --> 00:03:38.400
 so we talked about two types

73
00:03:38.400 --> 00:03:41.500
 of files that had some information in them which one

74
00:03:41.500 --> 00:03:42.500
 had current users.

75
00:03:45.300 --> 00:03:48.300
All right, so looking at the options that we have here

76
00:03:48.300 --> 00:03:51.500
 SSH config is a config file.

77
00:03:51.500 --> 00:03:54.500
 So there's definitely not user information in

78
00:03:54.500 --> 00:03:57.800
 that. We didn't talk about a user's file

79
00:03:57.800 --> 00:04:00.300
 or anything of that nature. We did talk

80
00:04:00.300 --> 00:04:04.500
 about group. But again in this particular file, it

81
00:04:03.500 --> 00:04:06.300
 has group information and the

82
00:04:06.300 --> 00:04:09.600
 past WD file contained a

83
00:04:09.600 --> 00:04:12.700
 lot of information to include current users.

84
00:04:12.700 --> 00:04:15.400
 So if you guessed past WD you did

85
00:04:15.400 --> 00:04:18.200
 an excellent job there. So again, this was

86
00:04:18.200 --> 00:04:22.100
 a brief lesson. We didn't want to get too deep into, you know

87
00:04:22.100 --> 00:04:25.100
 users and adding into leading users. Just really a high

88
00:04:25.100 --> 00:04:28.400
 level way that you can start to manipulate users is if

89
00:04:28.400 --> 00:04:31.500
 you need them for testing purpose, or if you're going to create an

90
00:04:31.500 --> 00:04:34.400
 account for day-to-day purposes, and so we learn

91
00:04:34.400 --> 00:04:37.600
 how to check those users in groups using that past WD and

92
00:04:37.600 --> 00:04:40.400
 group files in the Etsy directory, and then

93
00:04:40.400 --> 00:04:43.500
 we talked about how to add and delete users. So

94
00:04:43.500 --> 00:04:44.600
 I want to thank you for

95
00:04:44.900 --> 00:04:47.400
Wanting me today, and I look forward to seeing you

96
00:04:47.400 --> 00:04:48.200
 again soon.
