All right, folks, I hope you're enjoying the cause so far.
Now, this is something where you would be going a bit more on the higher level reason you would be
understanding more about the potions and how granting the permissions to any file really works.
So it's a really, really important part of any cybersecurity or information security paradigm, because
when you allocate certain restriction or certain permissions to a file, you actually achieve more towards
the confidentiality of cybersecurity, because if you don't have proper confidentiality, you cannot
achieve the access control.
You should assure that these certain files can only be accessed by a certain group of people or person.
Right.
So just like in our in our regular example, we allow only certain, certain, you know, certain resources
to be allocated for a few people right.
In my my home or your home as well.
Only a few people are allowed to access to your bedroom and very few maybe you you will be allowed to
open up your wardrobe.
Right.
So exactly the same way when you have files in your directories, you can specify or the permissions
for individual files about who can really access.
All right.
So let's let's understand how that really works.
So for permission, if we understand based on the example, with the moment we do the analyst minus
and test test minus text file you might have seen earlier as well.
Whenever we have done the this Discman, we get to see the you know, the initial privileges.
These indicates what are what all privileges we have for a specific file.
Right.
So that's where the AH represent the read W represents the right.
That means some the person can write the file and the X represent you can execute the file into these
files belongs to any process shall Python script or any sort of stuff.
All right.
So if you look at it, the first segment indicates the admin privileges.
Second, indicate your privileges for group.
So if you look at the privileges for the admin, it can write, it can read, sorry, you can write
and it can execute the file.
But when you look at the group, it can execute the file and read the file.
If you look at the third one that belongs to the public now you see and you would be amazed as well
and to execute the file.
Right.
So this is where the force indicates the admin group public.
Remember, the structure admin is the one.
It's okay to have all the privileges for the admin.
Right.
It is okay for certain group to have access to execute.
All right.
Exercisable for public.
It is good to have just read X's sometime.
Right.
Or in fact quite often as well.
So this is the example.
Now let's understand what exactly you need and how you can actually Grandy's your required privileges
to any certain file in any sort of file.
So before we really understand, we need to understand how that really works, how the how the command
really works for them.
OK, so let's change the permission of the funnel.
So for every permission, for every privilege, there is a number assigned to it.
And based on that number itself, your command will be defined.
So for execution, for executing any file, the number is one.
Remember this value, this is the value will be using it for creating, for creating the final output
the final.
And I'll tell you what exactly it is for right at this.
Do four read it is for OK.
Now in our structure we have admin, we have our group and we have public.
Now we need to have our admin as it is.
We need all the privileges for admin that he can feed.
He can write, he can execute for group.
We want him to read and write and for public, we just want him to read.
That's right.
So this is how it looks, admin group and public.
So let me tell you how exactly we are going to meet.
So in order to have admin to get the permission, we need all of this.
So we have four plus.
Two plus one that comes to seven, isn't it?
My math, it's pretty brading, is quick group.
We want the permission to be, let's say, read and write.
So four plus two, that equals to six.
And for public, I just want him to read for public access, maybe anybody, you know, the access,
he should only be able to read the file.
He should not be able to execute or write and write the file, basically, or modify the file.
So it should be just for.
That's for right, so the final value is seven, six, four, OK, now will be executing will be assigning
the exact command.
So in order to change the permission of any file, you just need to go to the Karley in the Seelie and
type of command CMH mode Hammoudi.
So this is the change mode and start with change mode and then you specify the privilege.
So then it would be seven, six, four, OK, and then you specify the filename.
Let's to test Dorte.
I'm sorry the extent that it's so easy.
Right.
But it is so now it is so complicated out there on the Internet that sometimes you feel it is it is
difficult to digest.
Sometimes I hope you got the idea and executed in the real life and you get more clarity about it.
OK, so let me log in to the galley that you define, OK?
And let's see what all we have.
OK, and in this case.
Let me see the full privileges.
This is what it is best for Roger to see.
This is the privileges for it.
Now I want to sign the privileges to it.
So exactly the same way.
I want to sign seven, six, four, because I want the Edman.
In our case, it is just.
Admin can read and write and then group can read public, and that's it.
We just want to allocate more permissions, more privileges to this file so we can make use of SUDEP,
see it mode and then seven, six, four, seven, six, four.
And then the filing test for Roger.
The extent that's done.
Oh, my buzzer lovely.
Now let's see if anything has been changed.
Wonderful.
You see, the privileges has been changed.
All right.
Isn't it really cool?
Right.
So I hope you got the idea and I hope you got the clarity how the permission or granting the privileges
really works.
Thank you so much.
We'll catch you in the next one.