1
00:00:01,050 --> 00:00:01,680
Hi.

2
00:00:01,680 --> 00:00:03,360
And welcome back to this video.

3
00:00:03,600 --> 00:00:09,570
So in this lesson, we are going to learn Linux permissions through octal way.

4
00:00:09,570 --> 00:00:14,760
So basically we are going to give the permissions using numbers.

5
00:00:14,760 --> 00:00:17,130
So let's see quickly how to do that.

6
00:00:17,850 --> 00:00:26,280
Now, one thing that you need to remember is till now we have seen how to give the permissions using

7
00:00:26,310 --> 00:00:28,530
RW X correct.

8
00:00:28,650 --> 00:00:35,640
And we know that there are three people, which is U, G O, which is the user group and others.

9
00:00:36,000 --> 00:00:44,160
We have also seen that there are three types of permissions which is read, write and execute.

10
00:00:44,190 --> 00:00:53,160
Now what special in this Linux permission using octal way you have to remember a lucky number which

11
00:00:53,160 --> 00:00:55,740
is 4 to 1.

12
00:00:55,830 --> 00:01:04,320
You always have to remember this in case here as you can see R which is the read represents the number

13
00:01:04,320 --> 00:01:12,930
for W which is the right represents the number two and X which is the execute represents the number

14
00:01:12,930 --> 00:01:13,410
one.

15
00:01:13,530 --> 00:01:14,250
Perfect.

16
00:01:14,460 --> 00:01:18,300
So this is I hope this is clear with everyone.

17
00:01:18,300 --> 00:01:20,910
Now let's move forward.

18
00:01:21,180 --> 00:01:29,430
So in case we need to give this permission to a file X, Y, Z, which is read, write, execute, read,

19
00:01:29,430 --> 00:01:35,280
write, execute and read, write, execute, which means we are giving basically all the permissions

20
00:01:35,280 --> 00:01:37,320
to everyone here.

21
00:01:37,320 --> 00:01:40,220
We need to represent it using octal way.

22
00:01:40,530 --> 00:01:41,340
Yes.

23
00:01:41,340 --> 00:01:47,310
So for that, we need to give seven to the first block, which is the user.

24
00:01:47,340 --> 00:01:51,990
Second block also gets seven and the third block also gets a seven.

25
00:01:52,260 --> 00:01:57,780
Now, you must have guessed it right from where did this seven come?

26
00:01:57,990 --> 00:02:01,890
Four plus two plus one gives seven.

27
00:02:01,890 --> 00:02:08,850
That means r4w2x1, four plus two plus one is seven.

28
00:02:08,850 --> 00:02:17,550
Hence the user gets on the first block permission seven the group gets the permission seven And others

29
00:02:17,550 --> 00:02:25,740
also get the permission seven Hence now the command that we need to gift on to the terminal is c mod

30
00:02:25,740 --> 00:02:33,000
seven, seven, seven and the final name x, y, z to give the permission to a file which is read,

31
00:02:33,000 --> 00:02:36,900
write, execute, read, write, execute, read, write, execute.

32
00:02:36,990 --> 00:02:37,740
Perfect.

33
00:02:38,040 --> 00:02:40,350
I hope this is clear with every one of you.

34
00:02:40,380 --> 00:02:44,490
We are doing the same thing, but using numbers this time.

35
00:02:44,970 --> 00:02:45,660
All right.

36
00:02:45,660 --> 00:02:50,850
So I hope you guys understood how we can give permissions using Oracle way.

37
00:02:50,880 --> 00:02:51,600
Thank you.
