Welcome to this lecture in this lecture we are going to learn about.
Interesting come on which is CSM Modi come on.
So this is the syntax.
So we'll see about the syntax how to execute it.
So first of all let me just open my terminal navigate to let me see it.
Stop.
And if I say yes this is going to give us the information that is inside this desk stop.
So the next thing is I want to list everything about this.
So all we need to do is simply Ellis and really.
Which will give every information including these privileges.
So here you can see these are the syntax over here.
And now we have the file group.
This is basically the first one is for the owner.
And the second one is for the file group.
So every file has this type of permission over here.
So you can see we have these deals which stands are basically which referred to the directory.
That means this demo one is directory and if it is does that mean it is a file.
So any of the privileges that starts with these for directory and if it is single desk that means it
is the file.
So next one from that is the three character which basically is for the owner and the next one three
is for the file group and the next one three is any other user that is except for the file group and
for the winner because we have already specified for the winner.
So let me just grab one of these so let me see.
I want to grab these demo ones so let me just grab these characters.
So let me just copy this and let's go back to our editor that is takes to data and list best down here.
So I've already said you that if you see here this days for the directory if it was single desk it means
it was the file.
What if it is with D.
That means it is a directory.
And the next three letters are the character is for the winner.
And if we see here it is R W Yes.
So what this RW X means is it is the mode.
So you can see here it is read right.
Execute that means.
Honor can read this directory right to this directory and execute this territory or manually.
This directory so honor can do anything and said this directly if I see something like this because
if I start with the desk that means it is a file and if I see r and deaths and yaks are there steps
that means it starts with.
Does that mean it is a file and these three first three categories for the owner that means honor can
only read the file.
He cannot write to the file or he cannot execute that file.
So this is the more.
And after these three the next three is for the file group.
So file group can read that file and they cannot write to that that directory basically and they can
execute the directory.
So next threes for the group that is other than that of the honor and the file group which only can
read and execute not can right to that directory if it was something like let me say all right and execute
and read the stars.
So that means it is a file where honor can only read the file file group can read write execute to the
file and the other user can only read that file they cannot write to the file they cannot execute that
file which is basically the mode of operations over here.
So if you want to since that is basically the syntax are basically the privileges to that file.
So let me just open again the terminal and if we see in this desk dirty 60 you can see that it is a
file because it is attached to the desk.
RW is basically the privileges for the honor.
So they can only read and write.
They cannot execute that file.
And for the file group they can only read.
And for the other user they can also only read if you want to change these privileges of this test or
DST to something that every one can do every.
Anything to that file you have to make use of this CSA Modi command which will make changes to these
privileges of this file system.
So let's go back over here and see the syntax first.
So we have set some more to command which is going to change that privileges to it will just basically
make the changes to the file permission.
So next one is the option.
So often here is a recursive other force or a verbose.
We have a couple of we have your file for the basically which will the surprise most either masses.
It will be done forcefully.
We have something like the other option like C which is for the changes.
It can be there C which is for the changes.
It can be the version or anything.
So first of all here is the record.
So this is important.
So recursive is going to change the files and directory recursively and next option here is a force.
So DCF option will suppress most of the other masses.
And the next one is verbose over here which is the V which will just output a diagnostic for every file
that is being processed because this is going to give any information that is being processed.
So we'll just do this are more and we can just assess the Parmesan using this cocktail more so we can
also do a symbolic way but that is very much harder than this.
So with the c the Dr. allow.
So here is the for the honor which is basically these first three character refers to the honor and
the next three is for the group which is your final group.
From here to here it is for the file group.
And the next is for the others.
So let me just go to the terminal again
I want to grab this permission so let me just grab a copy this formation and analysts go back to here.
Now I want to turn this Parmesan so this file so we cannot do something anything for this file.
So next one is for this our dog licks.
So I want to send this out of links to the letter.
So if you see here.
If it does pass four to one.
This is basically for read write and execute.
So if you add everything over here.
If I add four five six seven so everything is for seven.
So let me just give you a real quick example.
So if I say see it's Maudie make a space first see as you Maudie and I want to give the letter I want
the file to be read by everyone executed by everyone and write back to everyone.
So first seven refers to the honor.
So if you just give seven.
That honor is going to read write and execute.
But if we give something like only two if you just give it only to the owner cannot read.
So this is not possible but if you just give to the owner cannot read.
He can only write and he cannot do executions to that file.
If you do something like only four were here.
The honor only can read that file.
He cannot write.
He cannot execute.
So all you have to do is you have to add all of these letters or all of these characters in order to
give the permission.
If I say seven then these first seven is for the honor and he can read.
He can write he can execute because four plus two is six and plus one is seven for the second character
it is for the group.
So if you want to assign the permission for the group if you assign something that is character saving
these seven refers to the group which indicates that that file group can read that file right that file
and execute that file.
If you do something like only four then that group can only read the file.
They cannot execute the file because it too is for the execution if you see something like six then
they can read that file.
Right.
They file but they cannot execute it four to seven.
Then they can do everything.
So next one is if you just pass again seven.
That is for the other user which is not belongs to honor and the file group.
And they can also read that file read that file and execute that file.
After that you can simply pass here text da DST or any final name or here or any directory name.
So this is the way.
So if you want to see is the file name which is for this test the DST all you need to do is use this.
Come on.
So let me just copy this.
We reverse that we are doing these changes to the file recursive more in the records more and saving
means.
This file can be read and write and executed by the owner.
Another seven means this can be read and write and executed by the file group.
And only four means it can be only read by other users.
They cannot write and execute.
So let me just copy this and go to the terminal and you'll simply see here that is static in the recursive
mode 7 7 4 was for that permission and give the test a dart the Dee Dee it is test dark x 2 which is
your final name which you want to give the permission.
So if I just hit enter now if I say Ellis Yeah it should be Ellis E. Lee then you can see now permission
has been synced so you can see it was something that is with a white over here.
Now it has down to the green and you can see the Parmesan now has been since like here.
So it can be read right executed by the owner.
It can be read right executed by the.
Let me just make bigger so it can be read right executed by the owner.
It can also be read read executed for the file group but it can Willy be read by other person that is
not honor.
And the final group which was assigned a number which was basically assigned by this number which is
7 7 4 were here.
So first character is for the honor.
Second is for the group.
And the third one is for the other people or other user that is going to this is is this file.
So this is the way in order to assign the Parmesan to the file which is more to read write and execute
more.
And this is the simple absence like we can use the record some more and mostly will use this recursive
enforce more and use this some more.
And that is basically you read write execute which should be assigned with this character way in this
orderly way which is basically assigning where this character saving refers that they can read write
execute and basically we just assign this character to that file name to assign the permission to each
of these file.
So this is the way to this to use this to embody command in the upcoming lecture we'll see.
Now the further aspect of the column next and how to this to make use of this command in the hacking
so soon the next one.