Disable SELinux in Linux

SELinux  – Security-Enhanced Linux

Linux is regarded as one of the most secure operating systems you can use today, that is because of its illustrious security implementation features.

For starters, SELinux is described as a mandatory access control (MAC) security structure executed in the kernel.

SELinux offers a means of enforcing some security policies which would otherwise not be effectively implemented by a System Administrator.

When you install RHEL/CentOS or several derivatives, the SELinux feature or service is enabled by default.

Due to this some applications on your system may not actually support this security mechanism. Therefore, to make such applications function normally, you have to disable or turn off SELinux.

If you don’t want to disable SELinux, then you should implement some mandatory access control on files and services to function properly.

Check the status of SELinux

[root@nice1 ~]# sestatus
SELinux status: disabled

Disable SELinux

To disable SELinux, use your editor to open the file /etc/sysconfig/selinux as follows

# vi /etc/sysconfig/selinux

Then change the directive SELinux=enforcing to SELinux=disabled

Then, save and exit the file, for the changes to take effect, you need to reboot your system.


Related Posts

  • 42
    You'll need to: Stop Asterisk Stop DAHDI Unload the driver for your card from the Linux kernel Load the driver for your card with the module parameter "vpmsupport=0". You can stop Asterisk with the command: asterisk -rx "core stop gracefully" You can stop DAHDI with the command: /etc/init.d/dahdi stop In…
    Tags: linux, disable, system
  • 33
    What is a process? Except the kernel, Everything on a Linux system runs in the context of a process. Process can be loosely defined as a running program. Every process on a Linux system has a unique Process ID (PID). Users and programs use this PID to communicate with the…
    Tags: system, linux
  • 32
    What is samba server? Samba is an Open Source/Free Software suite that provides file and print services to SMB/CIFS clients. Samba is freely available, unlike other SMB/CIFS implementations, and allows for interoperability between Linux/Unix servers and Windows-based clients. Samba uses the TCP/IP protocol that is installed on the host server.…
    Tags: security, selinux, linux
  • 32
    Check the Status of The Iptables IPv4 Firewall Run the following command to check the status of the iptables IPv4 firewall : # service iptables status Disable The Iptables Firewall Use the following commands to stop the Iptables Firewall and remove it from autostart. Disable The Iptables IPv4 Firewall Run the following…
    Tags: disable, status

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: