From the course: Linux: Firewalls and SELinux

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Changing context labels

Changing context labels - Linux Tutorial

From the course: Linux: Firewalls and SELinux

Start my 1-month free trial

Changing context labels

- [Sean] I've already mentioned that SELinux is not going to throw a fit or cause you really any problems at all as long as everything you do as a systems administrator kind of conforms to what we would call standards. If you put your webpages into var/www/html, you're not going to have problems. But if you're a web administrator that likes to do things slightly differently and you want to just make a directory at the root level of your harddrive called web and put everything in there, this is Linux, right, you can do that, but SELinux is going to kind of freak out 'cause it knows that that's not supposed to be there. So as an administrator you kind of need to know how to get things to work that way. We're just going to use that as an example and we're going to show you how to make that work. So, the first thing we need to do is see what it's supposed to look like. So we go cd, and we'll look at var/www, and actually I'm just going to park there for a second, and we're going to go to…

Contents