From the course: Linux: Storage Systems
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Challenge: SELinux, LUKS, ACLs, and quotas - Linux Tutorial
From the course: Linux: Storage Systems
Challenge: SELinux, LUKS, ACLs, and quotas
(cymbal reverberates) - [Instructor] So, let's try some challenges, we've got several here. First one, what about SELinux, context type for /etc/motd. Find out what it is, change it, and look at what changes happened in the context files directory. After you set a new one with setmanage fcontext, then change it with restorecon. Check that, and then used the setmanage fcontext to set it back to what it was in the beginning, and then do your restorecon to set it back, so everything is the same way it was when you started. Now, let's try out the disc encryption stuff, the LUKS stuff. So, make a new 100 meg partition, set it up for LUKS, format it with the ext4, and mount it. So, you did the whole thing of making a new partition. Then let's look at the ACL stuff. So, make a new user, let's call him niceperson. And look at the access permission modes for /etc/motd and the ACLs by default. You should see that others can not write to /etc/motd. So, add an ACL that allows niceperson to read…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Restore default SELinux file contexts7m 55s
-
(Locked)
Configure encrypted partitions4m 58s
-
(Locked)
Manage file system access control lists6m 46s
-
(Locked)
File permission problems6m 59s
-
Using SUID, attributes, and read-only7m 49s
-
(Locked)
User and group disk quotas7m 18s
-
(Locked)
Challenge: SELinux, LUKS, ACLs, and quotas1m 59s
-
(Locked)
Solution: SELinux, LUKS, ACLs, and quotas7m 42s
-
(Locked)
-
-
-