WEBVTT - This file was automatically generated by VIMEO

0
00:00:05.200 --> 00:00:07.500
Hi and welcome back to this video.

1
00:00:08.300 --> 00:00:12.100
So in this lesson, we are going to learn Linux permissions

2
00:00:11.100 --> 00:00:15.000
 through octal way. So basically

3
00:00:14.700 --> 00:00:18.000
 we are going to give the permissions using

4
00:00:17.900 --> 00:00:20.700
 numbers. So let's see quickly how

5
00:00:20.700 --> 00:00:21.200
 to do that.

6
00:00:22.400 --> 00:00:25.800
Now one thing that you need to remember is

7
00:00:25.800 --> 00:00:28.300
 till now we have seen how to

8
00:00:28.300 --> 00:00:32.600
 give the permissions using rwx correct,

9
00:00:31.600 --> 00:00:34.200
 and we know that

10
00:00:34.200 --> 00:00:37.600
 there are three people which is you g o which

11
00:00:37.600 --> 00:00:39.900
 is the user group and others.

12
00:00:40.500 --> 00:00:44.100
We have also seen that there are three types

13
00:00:43.100 --> 00:00:46.600
 of permissions which is read

14
00:00:46.600 --> 00:00:49.100
 write and execute now.

15
00:00:50.200 --> 00:00:53.400
What special in this Linux permission using

16
00:00:53.400 --> 00:00:56.700
 octal way? You have to remember a

17
00:00:56.700 --> 00:01:00.000
 lucky number, which is 4 2 1

18
00:00:59.700 --> 00:01:02.800
 you always have to remember this in case

19
00:01:02.800 --> 00:01:04.600
 here as you can see.

20
00:01:05.600 --> 00:01:08.600
R which is the read represents the

21
00:01:08.600 --> 00:01:09.100
 number four

22
00:01:10.400 --> 00:01:14.000
W which is the right represents the number 2 and

23
00:01:13.600 --> 00:01:17.200
 X which is the execute represents the

24
00:01:16.200 --> 00:01:19.800
 number one perfect. So, this

25
00:01:19.800 --> 00:01:22.400
 is I hope this is clear with

26
00:01:22.400 --> 00:01:23.100
 everyone now.

27
00:01:23.800 --> 00:01:25.100
Let's move forward.

28
00:01:25.900 --> 00:01:26.000
so

29
00:01:26.800 --> 00:01:29.600
in case we need to give this permission

30
00:01:29.600 --> 00:01:32.800
 to a file XYZ, which is read write

31
00:01:32.800 --> 00:01:35.500
 execute read write execute and read

32
00:01:35.500 --> 00:01:38.900
 write execute which means we are giving basically all

33
00:01:38.900 --> 00:01:42.000
 the permissions to everyone here. We

34
00:01:41.300 --> 00:01:44.600
 need to represent it using octal Ray.

35
00:01:45.100 --> 00:01:49.300
Yes, so for that we need to give seven to

36
00:01:48.300 --> 00:01:51.500
 the first block, which is the user

37
00:01:51.500 --> 00:01:54.200
 second block also gets 7 and the

38
00:01:54.200 --> 00:01:57.800
 third block also gets a seven now. You

39
00:01:57.800 --> 00:02:00.600
 must have guessed it right from where

40
00:02:00.600 --> 00:02:03.500
 did the seven come four plus

41
00:02:03.500 --> 00:02:07.000
 two plus one gives seven. That means

42
00:02:06.600 --> 00:02:09.600
 are four W two

43
00:02:09.600 --> 00:02:12.200
 x one four plus two

44
00:02:12.200 --> 00:02:15.800
 plus one is seven. Hence. The user gets

45
00:02:15.800 --> 00:02:18.900
 on the first block permission 7 the group

46
00:02:18.900 --> 00:02:22.000
 gets the permission seven and others

47
00:02:21.400 --> 00:02:25.400
 also get the permission 7 hence. Now

48
00:02:24.400 --> 00:02:27.500
 the command that we need to gift

49
00:02:27.500 --> 00:02:31.600
 on to the terminal is chmod 777

50
00:02:30.600 --> 00:02:33.700
 and the final name XY said

51
00:02:33.700 --> 00:02:35.200
 to give the permission

52
00:02:36.500 --> 00:02:39.500
To a file which is reiterate execute read write execute

53
00:02:39.500 --> 00:02:42.800
 read write execute. Perfect. I

54
00:02:42.800 --> 00:02:45.500
 hope this is clear with everyone of you. We are

55
00:02:45.500 --> 00:02:48.700
 doing the same thing but using numbers this

56
00:02:48.700 --> 00:02:48.900
 time.

57
00:02:49.500 --> 00:02:52.700
Alright, so I hope you guys understood how we

58
00:02:52.700 --> 00:02:55.100
 can give permissions using octal way.

59
00:02:55.100 --> 00:02:55.700
 Thank you.
