Switching SE Linux ON/OFF
Monday, November 19, 2007
I had setup a CGI script on a linux box, and set all permissions right. Yet, I get a "403 Forbidden" page when I access the script via Apache web server. On digging, here is what I found...
Fedora Core 3 introduced the concept of security contexts as part of the Security Enhanced Linux (SELinux) definition. A Web page may have the right permissions, but the Apache httpd daemon won't be able to read it unless you assign it the correct security context or daemon access permissions. Context-related configuration errors will give "403 Forbidden" browser messages. Click here to learn how to setup the security context.
To avoid the hassle of setting up a security context, we can just turn OFF the SE Linux mode.
To view the mode: $ getenforce
To turn OFF the SE Linux mode
$ setenforce Permissive
$ vi /etc/sysconfig/selinux ; Set the property 'SELINUX' to disabled or permissive
To turn ON the SE Linux mode:
$ setenforce Enforcing
$ vi /etc/sysconfig/selinux ; Set the property 'SELINUX' to enforcing
Posted bySeshu Karthick at 12:05 PM
Labels: linux
Upcoming
Wednesday, November 14, 2007
Here is what I'm up to... Some of the technologies that I will begin to play with include:
- Groovy & Grails : This will help me to quickly build a prototype of what I wanted. Its very useful to test the waters before diving in.
- SOA : I'm looking at OSGI (implemented by Equinox) and Oracle's platform for OSGI. This knowledge is crucial in order to architect a Software system.
- Various Unit Test frameworks
- New features of Java 1.5, 1.6, 1.7 : Purely for the purpose of Coding
- Security aspects offered by Java & Enterprise Java
UPDATE: The list of resources I am using to learn the above tech stuff are ...
The official Groovy Documentation beginning with 'Getting Started Guide'
A free ebook 'Getting started with Grails'
Posted bySeshu Karthick at 4:12 PM