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

Challenge: SELinux, LUKS, ACLs, and quotas - Linux Tutorial

From the course: Linux: Storage Systems

Start my 1-month free trial

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…

Contents