WEBVTT

00:09.330 --> 00:15.760
Hello friends welcome back in this lesson we're going to talk about existentialists in Linux in our

00:15.790 --> 00:21.220
previous lesson we learn how to manage the permissions with the help of more.

00:21.220 --> 00:22.140
Come on OK.

00:22.270 --> 00:25.420
We learn how to set them or how to remove them.

00:25.540 --> 00:29.470
But that combined is having some limitations.

00:29.470 --> 00:36.200
Suppose you how file or a directory and there are 10 other users.

00:36.390 --> 00:36.850
OK.

00:37.030 --> 00:44.860
And you set the reading permission for other users for that file or folder and you want few of them

00:45.100 --> 00:47.310
how the right permission to.

00:47.470 --> 00:50.720
So you can do this thing with that.

00:50.720 --> 00:52.000
See it's more common.

00:52.030 --> 00:52.610
OK.

00:52.750 --> 01:00.760
So to overcome such limitations solve this previous technique the Access Control List is interested

01:01.210 --> 01:01.980
in Linux.

01:02.040 --> 01:07.810
OK so let's see how Access Control list can be implemented practically.

01:08.430 --> 01:09.140
OK.

01:09.190 --> 01:16.580
In some Linux operating systems you need to remount the file system with Ethereal so you can remount

01:16.580 --> 01:17.050
it.

01:17.070 --> 01:22.780
What is it in the stuff file which is located in the location in.

01:22.930 --> 01:31.540
So this type vi it is an office of ogee here.

01:31.760 --> 01:36.720
What you need to do is you just need to go here.

01:36.920 --> 01:38.340
Here it is.

01:38.340 --> 01:42.840
And so you need to add such entry into your file.

01:42.980 --> 01:47.860
So by pressing I you can it like this.

01:47.990 --> 01:56.310
And by Skip give colon right you like this you can write into it.

01:56.480 --> 02:00.160
And after that what do you need to do is just type go

02:03.200 --> 02:07.230
all up and forward slash.

02:07.270 --> 02:13.940
That is the root directory and again to not file system is remounted.

02:14.150 --> 02:17.840
So in this way you can get better in this word.

02:17.930 --> 02:26.210
You don't need to do this but I show you here because some systems are some older system need to do

02:26.210 --> 02:28.050
this or need to Ramond this.

02:28.100 --> 02:28.510
OK.

02:28.770 --> 02:36.500
So after a remounting there is a come on call is everything with the help of which we can set in the

02:36.990 --> 02:37.740
woods.

02:37.790 --> 02:39.390
Our mission is quantified.

02:39.490 --> 02:39.970
OK.

02:40.070 --> 02:43.050
So first of all let's create a file.

02:43.490 --> 02:45.690
It's done.

02:46.290 --> 02:47.140
You got x.

02:47.200 --> 02:56.160
The only way to get if you can see or test its attributes is your mission.

02:56.220 --> 03:00.760
So you don't you got the X.

03:01.040 --> 03:06.650
Now here you can see it reveals the current permissions OK for the file.

03:06.650 --> 03:10.650
So here you can see audio uses harrying on mission.

03:10.820 --> 03:11.240
OK.

03:11.450 --> 03:14.420
So are other users having a critical mission.

03:14.420 --> 03:18.140
So in my system there is a user bog.

03:18.140 --> 03:22.550
So let's see what happens when I try to edit this file.

03:22.610 --> 03:24.090
You can use it to dog

03:27.760 --> 03:30.250
no why.

03:30.380 --> 03:37.980
Student got 60 million here and see this as a warning it is a read only file.

03:38.380 --> 03:39.860
When I try to do that

03:46.890 --> 03:48.950
OK it shows an error here.

03:51.220 --> 03:57.450
In this way you can write the data to that file so you can get this by typing.

03:57.800 --> 04:05.720
You can force it to quick like this and now we see Bob hon.

04:05.820 --> 04:06.870
You did a fine.

04:07.040 --> 04:08.820
So did Bob.

04:08.820 --> 04:11.240
And here is the file.

04:11.240 --> 04:11.860
OK.

04:12.020 --> 04:17.780
So it is here now I'm going to send the right permission to the box.

04:18.140 --> 04:20.460
So just right here.

04:20.550 --> 04:30.950
If Israel then modify it and then use it because we need to give permission for use of Bob's So here

04:31.450 --> 04:40.760
the user name then colon and the politician that is right and the filing student party is the OK.

04:41.110 --> 04:43.450
It says no such files are to be read.

04:43.630 --> 04:44.220
OK so.

04:44.240 --> 04:46.060
Student who got the ax.

04:46.310 --> 04:46.750
OK.

04:46.880 --> 04:49.720
Now let's switch to bobbling

04:52.650 --> 04:55.160
want to go.

04:55.220 --> 04:56.060
Yes.

04:56.710 --> 04:58.040
OK.

04:58.940 --> 05:00.770
Here in the file.

05:00.780 --> 05:02.530
No this is two days

05:05.520 --> 05:06.350
on this

05:09.360 --> 05:12.720
let's try and see civic

05:16.800 --> 05:23.000
Let's see the data that he's got to go to you.

05:23.450 --> 05:23.670
OK.

05:23.670 --> 05:27.930
Here you can see the data is added to the fine.

05:27.990 --> 05:34.450
So in this way you can see the permission for other users according to your needs.

05:34.590 --> 05:42.980
So you can use specific permissions with the help of access control list and you can just hear like

05:42.990 --> 05:51.970
Suppose the exit from God can we here you can see venue and access control list or the permissions access

05:51.990 --> 05:55.540
control less than the plus sign is get added.

05:55.680 --> 05:55.990
OK.

05:55.990 --> 05:57.050
Here at the end.

05:57.120 --> 05:57.490
OK.

05:57.600 --> 06:01.440
In this way you can add the access control lists.

06:01.710 --> 06:05.080
You can also add this control list group.

06:05.160 --> 06:06.950
You just need to replace this.

06:06.950 --> 06:08.020
You did.

06:08.270 --> 06:09.740
And here Bob.

06:09.750 --> 06:11.030
Name the group name.

06:11.030 --> 06:15.340
And here you can set the permissions that you want.

06:15.450 --> 06:17.040
You can add it to the group.

06:17.280 --> 06:26.740
OK after reading this permission Let's see what happens with the help of the student Guga XTi enter.

06:26.970 --> 06:31.270
And here you can see user Bob is get added here.

06:31.560 --> 06:37.680
As a user looking for this find and it is having a really great access.

06:37.680 --> 06:43.990
So after having the commission Let me show you what happens in some directories.

06:44.180 --> 06:44.800
OK.

06:44.850 --> 06:47.870
So first of all let's create a directory

06:51.100 --> 06:51.680
no.

06:51.910 --> 06:55.330
Let's see the core missions for Joe.

06:55.750 --> 06:56.450
OK.

06:56.510 --> 07:01.170
Here you can see for all the users will give you an exact permission is there.

07:01.170 --> 07:04.350
So there is no write permission for this correctly.

07:04.370 --> 07:08.300
That means all the users can create a file or they reconcile that.

07:08.540 --> 07:15.680
So let's switch to Bob on that side.

07:15.890 --> 07:17.440
OK now we are inside Joe.

07:17.660 --> 07:23.790
And then I can click a directory something like this so it says permission denied because we don't know

07:23.800 --> 07:28.400
how the right mission for this directory as other users.

07:28.400 --> 07:31.910
So that's why we can create any file or directly inside it.

07:32.090 --> 07:37.580
So let's have the permission for a ball here.

07:37.840 --> 07:44.520
The user will read write execute on these.

07:45.060 --> 07:48.200
OK and no switches.

07:51.760 --> 07:57.340
No good side to make directly as.

07:57.510 --> 08:05.490
Ok fine as both the file and directory has been created here.

08:05.670 --> 08:06.240
OK.

08:06.320 --> 08:12.310
In this way you can add the files and directories of applying blind Zegerid permissions need the help

08:12.310 --> 08:14.350
of set up.

08:14.620 --> 08:17.280
So now we don't have the permission.

08:17.640 --> 08:23.440
OK so you remove the users from the Access Control list.

08:23.980 --> 08:31.340
So you can also remove the users from this list or you can remove the permissions to remove the permission

08:31.340 --> 08:34.490
and you just need to type for next.

08:34.500 --> 08:38.190
And then the user name Bob.

08:38.440 --> 08:43.960
And after that the file the student could not get here.

08:44.380 --> 08:47.100
So the body is removed as user.

08:47.390 --> 08:48.010
OK.

08:48.010 --> 08:55.470
So let's see what happens and get you to the city.

08:55.500 --> 09:00.310
And now here you can see there is no user presence here has.

09:00.580 --> 09:00.920
OK.

09:00.940 --> 09:03.240
The user is removed from the list.

09:03.250 --> 09:08.710
You can add multiple users for a file with the help of said of Israel.

09:08.920 --> 09:09.340
OK.

09:09.460 --> 09:13.960
And if you want to remove all the permissions I suppose.

09:13.960 --> 09:17.260
Here you can see the mosque where mission is also there.

09:17.340 --> 09:17.650
OK.

09:17.680 --> 09:25.430
The mosque is there so if you want to remove all the permissions at a time from a file that is set mid-set

09:25.490 --> 09:34.710
official then just the command then hyphen B and the file or the folder name and hit enter.

09:34.780 --> 09:40.270
Now get this student.

09:40.540 --> 09:46.300
And here you can see the mosque permission is get removed from this gate.

09:46.420 --> 09:54.190
So in this way you can play with Access Control list and make a more flexible way of providing the security

09:54.190 --> 09:56.360
for your files or folders.

09:56.360 --> 09:56.800
OK.
