Technology Insights

How to Turn Off SELinux on a CentOS Server

Follow the below directions to turn off selinux on a CentOS server. SeLinux can cause many issues and if your server is behind a properly configured firewall as well as the systems administrator only opens necessary ports that are configured properly your risks should be minimal.

  1. Modify selinux Configuration:Modify the selinux config file by issuing the command below and changing the SELINUX option to disabled as shown below.
  2. bash

    1. [root@server ~]#vi /etc/selinux/config
Technology Errors

Yum Error – ImportError: No module named yummain

You may see an error like the below when attempting to see if a certain package is installed using the yum package manager. Yum is the default package manager on RedHat Linux and CentOS Linux. Using the “yum list *SOMETEXT*” command will list all packages that contain “sometext” or you could use “yum list sometext” which will list a package specifically called “sometext”. Below you can see an attempt to list the “git” package on a CentOS server however an error was returned.