I know everyone in this demo.
I'm going to show you how to apply access control list on files and pictures.
The main objective of using access controls is to grant permissions for specific users and groups in
order to access files and directors at the same time.
We would like to restrict others from access in these files under directors for artists.
I want to bring the current directory.
So.
Under the slash storm, I'm going to create a fire right now, X file.
In order to apply the access control list, we use the command sit.
If BCO would like to find more information for this command, we can't go to the Manbij and we can see
here we have all the options here.
We can use them with the access control list, kind of go back here and list.
Also, it was another command gate.
If a SEAL was also I would like to get more information about the command.
We go through them and Basch can see here we can get to orbit of the access controls either on defiles
or detectors.
Now let's get if ACOR for this stick's fire.
As we can see here, we don't have any permissions.
So what they would like to do.
I would like to give user Tom Ridge right.
And execute their missions on this fire.
So I'm going to type right now, dash em.
As for accessing and changing the access control, listening you this is for the user.
Then call in name of the user.
Tom then call and read.
Write execute in the name of the file.
Perfect.
You can get the information for here for this file.
You can see here we give this is Tom Ridge.
Right.
Execute permission.
Now let's apply the access control list recursive.
So we apply the access control list recursive on existing files and directories.
First, what do you want to do?
I want to create a directory.
Make directory.
I'm gonna call this files.
So this file.
I'm going to create two X files.
Perfect.
That's the first one.
So I kind of want to extend reference.
I'm going backtrack now.
So I'm right now under the.
The slash temp directory.
Now I want to first let's see here get a seal for the files.
Perfect.
We don't have any permission for here and I would like to apply the access control list recursive.
What I'm going to do.
So sit.
If ACL, then what are we gonna do.
Dash R or B abacus.
Ah.
Then dash em all time.
Do you call it Tom.
I'm going to Sam think reach.
All right.
Execute my mission on the on the five story files.
Perfect strictures.
So the stakes you will get if you seal files.
You can see over here on this third extract.
We have.
Read Dragic secured permission for user Torp.
I'm going inside this fire right now just to check it if they seal or if one as we can see here.
So what we did the recursive as we can see it we apply axis controllers recursive on the existing five
on subdirectories with Chick and get a seal for the next four five two also on the same thing.
Let's create another text file.
If three to extend.
Let's get these three.
Wow.
We don't have the permissions for Tom.
And despite what because we apply to access control list recursive on the existing FAS subdirectories
when we apply the recursive we did in half if three text.
So we created this file after we applied access control, less recursive.
Now what I'm gonna do.
I'm going to apply the default access control list, will you, as the default access control list for
new files and directories in orders.
What you need in order to inherit the default access control list.
Well, here will be the same thing.
Set F DCO.
The only difference we're gonna do, we gonna do D.
This is for the default and dash cam user.
Then same thing would be Tom Brady.
So what we're gonna give.
Read, write, execute on this.
Oh sorry.
I'm gonna go back one more step.
Right now I'm under the slash Jim.
Perfect.
And then sit.
If ACL dash d dash cam then you, Tom.
Read, right?
Execute on this directory.
Perfect.
Now, what I'm gonna do, I'm going to get if a CEO files can see here we have the default right now.
And we we we use the default access control list.
And as you can see, I don't.
Well, as you mentioned, that for any new files and directories, we will inherit the default access
control list.
Now, let's go inside the two files.
I'm going to create a new file.
If for the extreme.
Perfect.
I'm going to get there if you settle for this file.
Perfect.
So as we can see here, we have the permission to read, right, execute for user top and go back here.
Now go back one more step.
He under the temp.
Uh, what I'm going to do right now, I want also to give.
A different directory, like a different accent, I'm going to apply to different access control list
for a group database.
So the difference here, we can add and type sheet.
We used to type what you for user and G4 group then said.
Group that is perfect.
Reach, right, execute.
Then the name of the five.
Perfect.
I'm gonna get if a CEO then files, as we can see, if we have the group database and we granted the
right and read execute permissions for group database.
Now let's go back here to the main screen and what I want to do, I want to delete the access control
list.
We go back here.
Set.
If set.
If you see.
Perfect.
We can go here now.
Food like for example, you see the options that we can use.
So for dash B.
We remove all remove all the existent ACL in Tyre.
So we are for the cat dash k.
We remove the default.
And there is also dash X.
Let me check.
Where is it.
X squared.
Is it shakes X.
Going to have it over, he said with chief.
OK.
Did each option offer the heat also the same thing he's here for?
Here's you can see here enter without the permission fares are using for deleting entire option dash
x dash.
The we've got to go back here and I'm going to delete dash B, the entire thing.
And there is something else also, if you would like to add if dash B and we cannot say B C like R with
it.
So this is for the recursive.
I would like to delete everything on this file.
I'm going to delete access control list.
Let's show it over here.
Philes.
As we can see here, we don't have any permission for Daviess, but one more thing I want to do is it
if a SEAL.
I'm going to do with a default dash M for District Street and you, Tom.
Right.
Read the redirect.
Execute for this text file.
Perfect.
This is for use at time and get if you sell.
For defiles perfect, we have permissions for told me before.
Let me go and I would like to log in as users talk.
Perfect.
Now, I'm going to go to the historic trees, as we can see here, we have the Derrick Street fires.
We have the permissions to access this directory as users talk.
With the permission that we have, we have to read right to go back and exit.
And that's it.
That's it for decision.
Thank you.
And see you in the next lesson.