1 00:00:06,510 --> 00:00:07,590 - So you have just learned 2 00:00:07,590 --> 00:00:09,990 about the Linux basic permissions. 3 00:00:09,990 --> 00:00:12,090 The thing about these Linux basic permissions 4 00:00:12,090 --> 00:00:15,480 is that they were introduced a long time ago. 5 00:00:15,480 --> 00:00:17,400 Now Linux is based on Unix 6 00:00:17,400 --> 00:00:20,040 and Unix is a very old operating system. 7 00:00:20,040 --> 00:00:22,800 It comes from the early 1970s 8 00:00:22,800 --> 00:00:25,710 and it means that the original idea 9 00:00:25,710 --> 00:00:28,260 of working with permissions was a bit limited. 10 00:00:28,260 --> 00:00:30,150 And that is why we have had 11 00:00:30,150 --> 00:00:33,090 a couple of improvements to the system. 12 00:00:33,090 --> 00:00:36,150 And one of them is the Advanced Permissions. 13 00:00:36,150 --> 00:00:38,160 So let's talk about the Advanced Permissions. 14 00:00:38,160 --> 00:00:40,710 To start with, there is Set User ID, 15 00:00:40,710 --> 00:00:42,840 also referred to as SUID 16 00:00:42,840 --> 00:00:44,823 with an octal value of four. 17 00:00:45,750 --> 00:00:48,240 Set User ID on files means 18 00:00:48,240 --> 00:00:52,410 that you run the file as the user owner of that file. 19 00:00:52,410 --> 00:00:54,060 And I will show you what that's all about 20 00:00:54,060 --> 00:00:55,680 in just a little bit. 21 00:00:55,680 --> 00:01:00,120 Set Group ID or SGID with octal value of two. 22 00:01:00,120 --> 00:01:01,680 If you apply that on a file, 23 00:01:01,680 --> 00:01:03,390 then it means that you run the file 24 00:01:03,390 --> 00:01:06,480 as the group owner of that file. 25 00:01:06,480 --> 00:01:08,670 And if you run it on a directory 26 00:01:08,670 --> 00:01:09,990 then it sets the ownership 27 00:01:09,990 --> 00:01:14,853 on newly created items as the group owner of that directory. 28 00:01:15,720 --> 00:01:16,920 In case you are wondering, 29 00:01:16,920 --> 00:01:18,180 hey, on Set User ID 30 00:01:18,180 --> 00:01:20,730 you didn't tell us what it's doing on a directory. 31 00:01:20,730 --> 00:01:21,600 Why is that? 32 00:01:21,600 --> 00:01:24,330 Because it has no meaning on directories. 33 00:01:24,330 --> 00:01:27,210 Set Group ID has a meaning on files and directories. 34 00:01:27,210 --> 00:01:30,000 Set User ID only has a meaning on files. 35 00:01:30,000 --> 00:01:33,180 And Sticky Bit only has a meaning on directories. 36 00:01:33,180 --> 00:01:35,250 And the meaning is that Sticky Bit 37 00:01:35,250 --> 00:01:38,310 on directories allows a user to delete files, 38 00:01:38,310 --> 00:01:43,310 if the user is file owner or the user is directory owner. 39 00:01:43,500 --> 00:01:45,690 Now this needs a couple of demos. 40 00:01:45,690 --> 00:01:48,813 In the next video I will demonstrate all of these.