SELinux may create problem for network service if not configured properly. So you can turn off SELinux temporarily i.e. permissive mode for SELinux. In this mode SELinux will continue its work and it will log message to system log files. But it will not block any network service or protected service.
This is great for troubleshooting purpose. For example, squid proxy server or dovecot POP3/IMAP sever known to have problem with SELinux.
You can modify the mode SELinux is running in using setenforce command. Use value 1 to put SELinux in enforcing mode. Use value 0 to put SELinux in permissive mode. Use getenforce command to find out whether SELinux is enforcing, permissive, or disabled.
Get SELinux mode
# getenforce
Output:
Enforcing
Set SELinux mode to permissive mode
# setenforce 0
# getenforce
Output:
Permissive
GUI tools for setting up SELinux mode
If you are using Fedora Core or Red Hat Enterprise Linux use system-config-securitylevel command to setup SELinux mode and other related properties. Type the following command at shell prompt:
$ system-config-securitylevel
Selinux can be disabled by passing kernel boot parameters. You need to edit grub.conf / menu.lst/ lilo.conf file.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop




![Red Hat Enterprise Linux 5 IMPORTANT Security Update [ 4-Nov-2008 ]](http://s13.cyberciti.org/images/shared/rp/3/27.jpg)







{ 5 comments… read them below or add one }
Well.what can i say but this website is amazing for open source lover like me ….this is very good website for enhancing the experiance in UNIX envirnoment.
I love this website very much.and everyday I like to visit this site to enhance my skills.
Regards
Satya
Satyendra.
If you can’t visit everyday you can subscribe our full feed – http://feeds.feedburner.com/Nixcraft-LinuxFreebsdSolarisTipsTricks or sign up for the free weekly email Newsletter, get information about all our articles, posts and other stuff via email – http://groups.google.co.in/group/nixcraft
Appreciate your post.
how do troubleshoot nfs server
For almost four days, I have been struggling to know why my code to access SMTP server failed in Centos 6.2 yet it work in my Win XP development environment. Thanks alot for the post.
Now I have disabled the SELinux and it is working; the next research is now on how to make this code work with SELinux enabled… a good start anywhy.
Elkana
Kenya
the alot for the post. this website help me solve my problem. i love this website
Regards,
Sapta