RHEL6 – How to Setup an Anonymous Download Only FTP Server

A while back I spit out a post on how to configure an anonymous ftp server that allowed uploads and downloads, which you can find here. Its a very exciting read and will tell you everything that you need to know to get you up and running with an anonymous ftp server. However those instructions are specifically for a server that allows anonymous uploads as well as downloads. So today we are going to go over only the steps for anonymous download, which is actually much easier.

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 Semanage and Restorecon to Modify SELinux File Contexts

Ok, semanage, when used with the fcontext argument, is used to define SELinux file contexts for file. It basically adds the new definition to the file, /etc/selinux/targeted/contexts/files/file_contexts.