WEBVTT

00:09.080 --> 00:14.570
Hello Friends will come back in this list and we're going to talk about the ones who will file permissions

00:14.630 --> 00:15.660
in Linux.

00:15.830 --> 00:20.000
In our previous lessons we learn how to sort of file permissions.

00:20.020 --> 00:21.410
It seems more combined.

00:21.470 --> 00:27.740
And in this lesson we're going to talk about the extra part of that come on again with more we can set

00:27.740 --> 00:35.150
up some extra permissions like setting up user ID group ID and also the sticky bit.

00:35.210 --> 00:35.510
OK.

00:35.510 --> 00:38.300
These are all permissions in Linux.

00:38.400 --> 00:38.780
OK.

00:38.930 --> 00:42.080
So let's see practically how to set them.

00:42.680 --> 00:43.300
OK.

00:43.320 --> 00:45.050
Most of all let's see.

00:45.130 --> 00:55.410
While there still are not 60 on this file I want to set the s you deeper mission that is search.

00:55.430 --> 00:56.460
User ID.

00:56.600 --> 01:03.440
So to send this permission you need to use the command see it's more like this.

01:03.440 --> 01:10.240
And if you want to set the permission for user then you and then close and then as.

01:10.310 --> 01:20.500
And then finally studen daughter XTi enter is asking for the password no less.

01:20.690 --> 01:29.000
And here you can notice that the extra S is headed at the end of the user permissions so that means

01:29.050 --> 01:33.160
we set this user ID on this file.

01:33.470 --> 01:35.130
So what is the use of it.

01:35.350 --> 01:42.470
OK when you said this permission on file then it could be dangerous because of when that this foreign

01:42.470 --> 01:47.200
file or any application OK it is very useful in case hope applications.

01:47.210 --> 01:52.380
Suppose there is an application which you need only to be used by Administrator.

01:52.430 --> 02:00.740
And if that administrator sacked this beat on hogi means it's said the user id then what happens is

02:00.860 --> 02:06.690
if all the users trying to access that application then that application runs.

02:06.740 --> 02:09.940
But it is declared as a group.

02:10.370 --> 02:16.980
It is treated as root means the normal user can perform all operations that user can.

02:17.090 --> 02:19.050
OK so it is very dangerous.

02:19.100 --> 02:27.790
So think twice before applying this permission on your application so you can set this on a file folder

02:27.800 --> 02:28.350
OK.

02:28.520 --> 02:36.590
So in this way you can set these permissions the next spool is as that is said group permission.

02:36.890 --> 02:41.620
So you can set that permission like this.

02:41.750 --> 02:47.450
Just simply replace this you will see again and hit enter.

02:47.500 --> 02:55.500
Now let's view you here again the on the yes is added to the group permissions.

02:55.540 --> 02:56.100
OK.

02:56.560 --> 03:00.150
So what is the use of that when you apply this permission to the group.

03:00.190 --> 03:03.400
It is work like sim as it work on user.

03:03.730 --> 03:07.940
But when you apply this permission on a directory.

03:07.960 --> 03:12.970
Then what happens is any file that you create inside the directory.

03:13.120 --> 03:16.670
And by default the ownership of the directories upload to that file.

03:16.720 --> 03:17.180
OK.

03:17.410 --> 03:19.300
So let's see how it works.

03:19.360 --> 03:22.360
Let's create a directory.

03:22.690 --> 03:23.770
We are OK.

03:23.800 --> 03:25.240
It is very useful.

03:25.360 --> 03:29.350
Permission in case of directories is ugly.

03:29.860 --> 03:34.060
And now let's say one

03:36.860 --> 03:40.830
to this.

03:40.850 --> 03:45.770
Now let's get this guys unless you know why.

03:45.800 --> 03:48.070
Touch screen.

03:48.200 --> 03:48.880
Not yet.

03:48.920 --> 03:50.670
He will.

03:51.210 --> 03:56.990
OK now here you can see a student or XTi face having user or owners present and group permission.

03:57.110 --> 03:59.680
So now is it.

03:59.730 --> 04:01.310
Oh no no.

04:01.310 --> 04:02.690
Tried to log in as you

04:06.340 --> 04:07.430
OK.

04:07.530 --> 04:09.710
Now let's get inside.

04:19.530 --> 04:22.660
OK now we are so stupid.

04:22.870 --> 04:26.210
We could have this not be x.

04:26.680 --> 04:28.530
The fight is clearly in here.

04:28.940 --> 04:36.710
No real Now here you can see the file start Estes greater by the rookie's.

04:36.740 --> 04:43.550
But here you can see the ownership of this directory at all readily transferred to this find.

04:43.610 --> 04:50.880
Now the owner of this file means the group owner of this file is present and in this way this permission

04:50.950 --> 04:57.560
is very helpful in some cases where you don't want to change the group owners.

04:57.580 --> 04:58.140
OK.

04:58.330 --> 05:02.420
In such cases you can apply this permission on a directory.

05:02.640 --> 05:03.250
OK.

05:03.460 --> 05:11.830
Or if there are some users who always want to change each other's files or always want to see each file

05:12.120 --> 05:13.840
and others won't them.

05:13.840 --> 05:17.770
So in that case you can apply this commission.

05:18.600 --> 05:18.940
Now

05:25.550 --> 05:32.840
now we are logging as president of the settings how to remove these beats or how good removes these

05:32.840 --> 05:39.740
permissions to remove these permissions you just need to be in place the plus sign minus sign that is

05:40.200 --> 05:43.630
more than you minus.

05:43.780 --> 05:47.840
That's true that they did like this

05:50.560 --> 05:51.630
Carlos.

05:51.990 --> 05:52.440
OK.

05:52.460 --> 06:00.700
Here you can see the permission for user is removed here from the student body XTi use.

06:00.920 --> 06:04.290
You can then remove the permission.

06:04.300 --> 06:11.900
With this come once the final permission and which is very useful permission that is sticky with one

06:11.900 --> 06:12.480
mission.

06:12.650 --> 06:15.590
So how to set it and what is it.

06:15.590 --> 06:19.340
So when you said the ticket with permission on a file.

06:19.610 --> 06:28.760
Then what happens is other users can read your file execute your file or editor but they can't rename

06:28.910 --> 06:33.950
or remove the fight or get the country name or we will find.

06:33.970 --> 06:43.920
So given the sort of the sticky bit permissions so set up sticky bit you use sudo more and then plasticity

06:44.080 --> 06:55.520
and the file the student got it and you know here you can see studen got its file there is and character

06:55.520 --> 07:01.610
is applied here that is the that means the sticky bit is on for this file.

07:01.710 --> 07:13.480
Remove that just put in place the plus minus It turned loose and you can see that it is removed.

07:13.850 --> 07:20.720
And this these are the Erewhon so they will permissions so that you can use in some particular conditions.

07:21.030 --> 07:28.560
But I don't find these permissions are so useful because the read write execute permissions are already

07:28.560 --> 07:30.870
there and they are both working.

07:30.870 --> 07:35.500
I personally find them the working of both the permissions same.

07:35.700 --> 07:37.630
So there is no greater difference in that.

07:37.650 --> 07:40.230
What Ubuntu provides and this feature.

07:40.230 --> 07:49.280
So that's why I thought it is important to know you are into everything that is present in the human

07:49.320 --> 07:50.240
do so well.

07:50.310 --> 07:53.840
So that is why I introduced this permissions here.
