1 00:00:06,530 --> 00:00:09,490 In this video we'll talk about advanced Linux permissions. 2 00:00:10,009 --> 00:00:11,339 There's one thing that you need to know. 3 00:00:12,060 --> 00:00:15,019 In many cases you will never need advanced Linux permissions. 4 00:00:15,640 --> 00:00:19,535 So this is the special case permissions and 5 00:00:19,535 --> 00:00:23,429 let's try to understand how it is working. 6 00:00:24,410 --> 00:00:28,060 So the first permission is set user id, also known 7 00:00:28,060 --> 00:00:31,710 as suit, and that has the octal value of 4. 8 00:00:33,530 --> 00:00:37,135 It only has a meaning on files. And on files it means 9 00:00:37,135 --> 00:00:40,740 that you run the VAL as the user owner of that file. 10 00:00:41,590 --> 00:00:44,329 And I will show you that's actually a pretty dangerous permission. 11 00:00:45,369 --> 00:00:51,215 Then we have set groupid, also known as sgid, which is the octal value of 2, and on files that 12 00:00:51,215 --> 00:00:57,060 means that you are going to run the VAL as the group owner of that val. That's pretty uncommon. 13 00:00:57,619 --> 00:01:04,329 But on directories it sets ownership on newly created items as the group owner of that directory. 14 00:01:05,329 --> 00:01:06,730 I'll show you why that makes sense. 15 00:01:07,750 --> 00:01:11,390 Then we have sticky bit and sticky bit has the octal value of 1. 16 00:01:12,129 --> 00:01:16,905 And on directories it allows a user to delete files if the user is 17 00:01:16,905 --> 00:01:21,680 file owner or the user is directory owner. In the next video I'll demonstrate.