1 00:00:00,530 --> 00:00:02,520 I know everyone in this demo. 2 00:00:02,580 --> 00:00:08,870 I'm going to show you how to apply access control list on files and pictures. 3 00:00:09,780 --> 00:00:17,700 The main objective of using access controls is to grant permissions for specific users and groups in 4 00:00:17,700 --> 00:00:21,420 order to access files and directors at the same time. 5 00:00:21,480 --> 00:00:26,950 We would like to restrict others from access in these files under directors for artists. 6 00:00:27,060 --> 00:00:28,950 I want to bring the current directory. 7 00:00:29,200 --> 00:00:29,450 So. 8 00:00:31,480 --> 00:00:37,050 Under the slash storm, I'm going to create a fire right now, X file. 9 00:00:39,490 --> 00:00:43,300 In order to apply the access control list, we use the command sit. 10 00:00:43,470 --> 00:00:50,130 If BCO would like to find more information for this command, we can't go to the Manbij and we can see 11 00:00:50,130 --> 00:00:52,740 here we have all the options here. 12 00:00:53,070 --> 00:01:00,480 We can use them with the access control list, kind of go back here and list. 13 00:01:00,510 --> 00:01:02,000 Also, it was another command gate. 14 00:01:02,160 --> 00:01:06,240 If a SEAL was also I would like to get more information about the command. 15 00:01:06,300 --> 00:01:14,010 We go through them and Basch can see here we can get to orbit of the access controls either on defiles 16 00:01:14,100 --> 00:01:14,910 or detectors. 17 00:01:15,430 --> 00:01:19,100 Now let's get if ACOR for this stick's fire. 18 00:01:19,140 --> 00:01:22,200 As we can see here, we don't have any permissions. 19 00:01:22,410 --> 00:01:23,670 So what they would like to do. 20 00:01:24,150 --> 00:01:28,890 I would like to give user Tom Ridge right. 21 00:01:29,160 --> 00:01:31,080 And execute their missions on this fire. 22 00:01:31,590 --> 00:01:33,830 So I'm going to type right now, dash em. 23 00:01:34,590 --> 00:01:38,910 As for accessing and changing the access control, listening you this is for the user. 24 00:01:39,290 --> 00:01:41,280 Then call in name of the user. 25 00:01:41,310 --> 00:01:43,800 Tom then call and read. 26 00:01:44,640 --> 00:01:47,340 Write execute in the name of the file. 27 00:01:47,820 --> 00:01:48,270 Perfect. 28 00:01:48,480 --> 00:01:51,630 You can get the information for here for this file. 29 00:01:52,520 --> 00:01:57,330 You can see here we give this is Tom Ridge. 30 00:01:57,600 --> 00:01:57,930 Right. 31 00:01:57,970 --> 00:01:58,870 Execute permission. 32 00:01:59,790 --> 00:02:03,800 Now let's apply the access control list recursive. 33 00:02:04,290 --> 00:02:09,550 So we apply the access control list recursive on existing files and directories. 34 00:02:10,020 --> 00:02:11,250 First, what do you want to do? 35 00:02:11,370 --> 00:02:13,510 I want to create a directory. 36 00:02:13,660 --> 00:02:14,820 Make directory. 37 00:02:14,850 --> 00:02:16,530 I'm gonna call this files. 38 00:02:17,730 --> 00:02:18,770 So this file. 39 00:02:19,320 --> 00:02:22,440 I'm going to create two X files. 40 00:02:22,890 --> 00:02:23,400 Perfect. 41 00:02:24,360 --> 00:02:25,080 That's the first one. 42 00:02:25,680 --> 00:02:27,960 So I kind of want to extend reference. 43 00:02:28,440 --> 00:02:29,550 I'm going backtrack now. 44 00:02:31,020 --> 00:02:32,290 So I'm right now under the. 45 00:02:34,180 --> 00:02:35,810 The slash temp directory. 46 00:02:36,650 --> 00:02:43,160 Now I want to first let's see here get a seal for the files. 47 00:02:43,730 --> 00:02:44,270 Perfect. 48 00:02:44,600 --> 00:02:51,440 We don't have any permission for here and I would like to apply the access control list recursive. 49 00:02:52,040 --> 00:02:52,800 What I'm going to do. 50 00:02:52,850 --> 00:02:53,520 So sit. 51 00:02:53,780 --> 00:02:56,080 If ACL, then what are we gonna do. 52 00:02:56,340 --> 00:02:59,540 Dash R or B abacus. 53 00:02:59,610 --> 00:02:59,810 Ah. 54 00:02:59,960 --> 00:03:03,110 Then dash em all time. 55 00:03:03,320 --> 00:03:05,330 Do you call it Tom. 56 00:03:06,290 --> 00:03:09,370 I'm going to Sam think reach. 57 00:03:09,540 --> 00:03:09,990 All right. 58 00:03:10,070 --> 00:03:16,330 Execute my mission on the on the five story files. 59 00:03:16,490 --> 00:03:17,790 Perfect strictures. 60 00:03:19,340 --> 00:03:25,030 So the stakes you will get if you seal files. 61 00:03:26,300 --> 00:03:28,740 You can see over here on this third extract. 62 00:03:28,820 --> 00:03:29,630 We have. 63 00:03:31,380 --> 00:03:34,190 Read Dragic secured permission for user Torp. 64 00:03:34,380 --> 00:03:44,970 I'm going inside this fire right now just to check it if they seal or if one as we can see here. 65 00:03:45,900 --> 00:03:52,960 So what we did the recursive as we can see it we apply axis controllers recursive on the existing five 66 00:03:53,080 --> 00:04:02,940 on subdirectories with Chick and get a seal for the next four five two also on the same thing. 67 00:04:03,420 --> 00:04:06,160 Let's create another text file. 68 00:04:06,350 --> 00:04:07,920 If three to extend. 69 00:04:10,560 --> 00:04:13,330 Let's get these three. 70 00:04:15,150 --> 00:04:15,500 Wow. 71 00:04:16,740 --> 00:04:20,529 We don't have the permissions for Tom. 72 00:04:20,640 --> 00:04:28,530 And despite what because we apply to access control list recursive on the existing FAS subdirectories 73 00:04:29,040 --> 00:04:35,530 when we apply the recursive we did in half if three text. 74 00:04:36,510 --> 00:04:41,880 So we created this file after we applied access control, less recursive. 75 00:04:42,540 --> 00:04:44,700 Now what I'm gonna do. 76 00:04:44,760 --> 00:04:52,890 I'm going to apply the default access control list, will you, as the default access control list for 77 00:04:52,890 --> 00:04:55,980 new files and directories in orders. 78 00:04:56,400 --> 00:05:00,780 What you need in order to inherit the default access control list. 79 00:05:01,280 --> 00:05:03,630 Well, here will be the same thing. 80 00:05:03,670 --> 00:05:04,940 Set F DCO. 81 00:05:05,310 --> 00:05:09,840 The only difference we're gonna do, we gonna do D. 82 00:05:10,240 --> 00:05:13,260 This is for the default and dash cam user. 83 00:05:13,790 --> 00:05:16,410 Then same thing would be Tom Brady. 84 00:05:17,880 --> 00:05:18,710 So what we're gonna give. 85 00:05:19,300 --> 00:05:23,190 Read, write, execute on this. 86 00:05:23,640 --> 00:05:24,360 Oh sorry. 87 00:05:24,420 --> 00:05:26,910 I'm gonna go back one more step. 88 00:05:27,950 --> 00:05:29,820 Right now I'm under the slash Jim. 89 00:05:30,510 --> 00:05:30,960 Perfect. 90 00:05:31,990 --> 00:05:32,670 And then sit. 91 00:05:32,920 --> 00:05:38,250 If ACL dash d dash cam then you, Tom. 92 00:05:39,560 --> 00:05:40,550 Read, right? 93 00:05:40,760 --> 00:05:43,120 Execute on this directory. 94 00:05:43,640 --> 00:05:44,180 Perfect. 95 00:05:44,720 --> 00:05:54,250 Now, what I'm gonna do, I'm going to get if a CEO files can see here we have the default right now. 96 00:05:54,360 --> 00:05:57,830 And we we we use the default access control list. 97 00:05:58,200 --> 00:05:59,490 And as you can see, I don't. 98 00:05:59,790 --> 00:06:06,410 Well, as you mentioned, that for any new files and directories, we will inherit the default access 99 00:06:06,410 --> 00:06:07,100 control list. 100 00:06:07,400 --> 00:06:10,850 Now, let's go inside the two files. 101 00:06:11,420 --> 00:06:13,250 I'm going to create a new file. 102 00:06:13,840 --> 00:06:15,800 If for the extreme. 103 00:06:16,880 --> 00:06:17,450 Perfect. 104 00:06:18,020 --> 00:06:20,450 I'm going to get there if you settle for this file. 105 00:06:22,590 --> 00:06:23,130 Perfect. 106 00:06:23,500 --> 00:06:34,590 So as we can see here, we have the permission to read, right, execute for user top and go back here. 107 00:06:35,240 --> 00:06:36,920 Now go back one more step. 108 00:06:37,020 --> 00:06:38,910 He under the temp. 109 00:06:39,520 --> 00:06:43,980 Uh, what I'm going to do right now, I want also to give. 110 00:06:47,550 --> 00:06:53,560 A different directory, like a different accent, I'm going to apply to different access control list 111 00:06:53,680 --> 00:06:55,660 for a group database. 112 00:06:55,930 --> 00:06:59,880 So the difference here, we can add and type sheet. 113 00:07:01,030 --> 00:07:06,510 We used to type what you for user and G4 group then said. 114 00:07:06,670 --> 00:07:09,190 Group that is perfect. 115 00:07:10,300 --> 00:07:12,350 Reach, right, execute. 116 00:07:12,740 --> 00:07:14,090 Then the name of the five. 117 00:07:14,140 --> 00:07:14,710 Perfect. 118 00:07:15,160 --> 00:07:28,240 I'm gonna get if a CEO then files, as we can see, if we have the group database and we granted the 119 00:07:28,570 --> 00:07:33,940 right and read execute permissions for group database. 120 00:07:34,840 --> 00:07:42,580 Now let's go back here to the main screen and what I want to do, I want to delete the access control 121 00:07:42,580 --> 00:07:42,790 list. 122 00:07:42,820 --> 00:07:43,840 We go back here. 123 00:07:44,440 --> 00:07:44,900 Set. 124 00:07:45,560 --> 00:07:47,440 If set. 125 00:07:47,770 --> 00:07:48,570 If you see. 126 00:07:49,050 --> 00:07:49,560 Perfect. 127 00:07:50,290 --> 00:07:51,570 We can go here now. 128 00:07:52,000 --> 00:07:55,220 Food like for example, you see the options that we can use. 129 00:07:55,240 --> 00:07:56,770 So for dash B. 130 00:07:56,830 --> 00:08:01,900 We remove all remove all the existent ACL in Tyre. 131 00:08:02,040 --> 00:08:05,020 So we are for the cat dash k. 132 00:08:05,200 --> 00:08:06,760 We remove the default. 133 00:08:07,210 --> 00:08:10,170 And there is also dash X. 134 00:08:10,240 --> 00:08:11,130 Let me check. 135 00:08:11,170 --> 00:08:11,860 Where is it. 136 00:08:12,460 --> 00:08:13,060 X squared. 137 00:08:13,060 --> 00:08:14,590 Is it shakes X. 138 00:08:15,900 --> 00:08:18,620 Going to have it over, he said with chief. 139 00:08:21,330 --> 00:08:21,630 OK. 140 00:08:21,890 --> 00:08:27,260 Did each option offer the heat also the same thing he's here for? 141 00:08:27,480 --> 00:08:33,980 Here's you can see here enter without the permission fares are using for deleting entire option dash 142 00:08:34,039 --> 00:08:35,020 x dash. 143 00:08:35,570 --> 00:08:44,390 The we've got to go back here and I'm going to delete dash B, the entire thing. 144 00:08:44,580 --> 00:08:51,260 And there is something else also, if you would like to add if dash B and we cannot say B C like R with 145 00:08:51,260 --> 00:08:51,500 it. 146 00:08:51,770 --> 00:08:53,000 So this is for the recursive. 147 00:08:53,030 --> 00:08:56,480 I would like to delete everything on this file. 148 00:08:56,790 --> 00:08:59,180 I'm going to delete access control list. 149 00:09:00,420 --> 00:09:01,880 Let's show it over here. 150 00:09:04,140 --> 00:09:05,070 Philes. 151 00:09:06,320 --> 00:09:12,860 As we can see here, we don't have any permission for Daviess, but one more thing I want to do is it 152 00:09:12,980 --> 00:09:14,000 if a SEAL. 153 00:09:15,230 --> 00:09:21,200 I'm going to do with a default dash M for District Street and you, Tom. 154 00:09:22,130 --> 00:09:22,610 Right. 155 00:09:23,480 --> 00:09:25,890 Read the redirect. 156 00:09:25,910 --> 00:09:29,020 Execute for this text file. 157 00:09:29,060 --> 00:09:29,450 Perfect. 158 00:09:29,480 --> 00:09:32,540 This is for use at time and get if you sell. 159 00:09:35,010 --> 00:09:41,020 For defiles perfect, we have permissions for told me before. 160 00:09:41,850 --> 00:09:46,530 Let me go and I would like to log in as users talk. 161 00:09:50,360 --> 00:09:50,720 Perfect. 162 00:09:51,330 --> 00:10:00,180 Now, I'm going to go to the historic trees, as we can see here, we have the Derrick Street fires. 163 00:10:03,100 --> 00:10:08,340 We have the permissions to access this directory as users talk. 164 00:10:08,980 --> 00:10:14,740 With the permission that we have, we have to read right to go back and exit. 165 00:10:15,810 --> 00:10:18,060 And that's it. 166 00:10:18,540 --> 00:10:19,590 That's it for decision. 167 00:10:19,890 --> 00:10:20,460 Thank you. 168 00:10:21,100 --> 00:10:22,770 And see you in the next lesson.