RHEL6 – Using htpasswd to Create a Secure Apache Directory

Bank-vaultThe process of setting up a simple password protected web directory on an Apache server is rather easy. The simplest way to accomplish this task is to use flat-file user authentication. Disclaimer, I am not claiming that the directions below are the most complete, or the most secure. However they work and are probably the most simple.

SELinux – Invalid Regex in /etc/selinux/targeted/contexts/files/file_context

So I have been doing my best to better understand SELinux as of late, and last night when I was practicing I ran into an issue that had me banging my head against by desk. Specifically I was playing around with the semanage command and working on defining a particular context to a directory that I had just created. However I was not exactly quite sure of the exact regex to use (or even if I needed to use a regex)

RHEL6 – Using ACLs to Grant and Restrict FIle Access.

Access Control Lists or ACLs provide more controll over file permissions than standard linux file permissions (UGO -- user, group, other). For example lets say that you want all members of the group "students" to have the ability to read a file, however you want to allow one user in that group the ability to … Continue reading RHEL6 – Using ACLs to Grant and Restrict FIle Access.