Selinux howto for the impatient

Submitted by sklav on Thu, 05/05/2011 - 00:27

But i find that in general when I setup a box I leave Selinux in permissive mode and then go threw the paces of connecting to every service i want running and all associated options so for example if you setup a website that makes use of scripts i would recommend you run them all and after completed and hopefully before you ever connect the box to the internet you run the steps below to create a policy module. I find that this has prevented me from having major issues and i get the benefits of Selinux.

To create a rule that pretty much allows all AVC denials:

Mysql Cheat Sheet for Grant Permissions

Submitted by sklav on Fri, 02/04/2011 - 11:11

An example of how to add SELECT privileges to a user using GRANT

GRANT SELECT ON projectdb.* TO user@'localhost' IDENTIFIED BY 'passwd';

If SELECT is not enough for our user we can add more privileges using a query similar to the one below:

An example of how to add a selection of privileges to a user using GRANT

GRANT SELECT, INSERT, DELETE ON projectdb.* TO user@'localhost' IDENTIFIED BY 'passwd';

If you want to GRANT ALL the privileges to a user then use this query:

Apache mod_security for Centos 5.x / RHEL 5.x

Submitted by sklav on Thu, 03/18/2010 - 15:47

Since i didn't want to have to go down that route i decided to build mod_security based on the version of Apache that ships with Centos 5.x / RHEL 5.x Now I cannot take full credit for creating the srpm which i copied from www.modsecurity.org

But i have built the associated rpm based on the version of Apache shipped with Centos 5.x / RHEL 5.x using the well written spec file created by the aforementioned site.

Hardening php on centos 5.x with suhosin

Submitted by sklav on Tue, 11/03/2009 - 13:18

Step 1: (adding the repo)

touch /etc/yum.repos.d/centos-testing.repo

paste the code below into the file we created above using your favourite text editor

name=CentOS-5 Testing

High Quality Printing Centos 5

Submitted by sklav on Wed, 03/12/2008 - 11:50

Gutenprint supports a wide variety of Epson Stylus, HP DeskJet, Canon BubbleJet, Lexmark inkjet printers, PCL laser printers, and Canon, Fujifilm, Sony, Olympus dye sublimation printers. Its primary goal is uncompromising quality. Epson Stylus printers in particular are supported in all resolutions and modes, and the latest printers are capable of producing prints that rival photographic prints in quality. This package also offers much faster printing for high quality text and presentation graphics when required.