CentOS the method of completely deleting SELinux __linux

Source: Internet
Author: User

SELinux (security-enhanced Linux) security-enhanced Linux is an implementation of mandatory access control (mandatory access controls). In this kind of control, Linux has a lot of operations that can be banned or unsuccessful. Before the installation of CentOS under the vsftpd how can not get up. Then the SELinux and then finished. All right, cut the crap, let's talk about how to get rid of SELinux.

Vim/etc/selinux/config

To open the SELinux configuration file, we can see that the SELinux is turned on by default:

Selinux=enforcing

So what we're going to change is this, just drop the original comment and write it yourself.

Selinux=disabled

Specifically as follows:

# This file controls thestate of the ' SELinux on the system.

# selinux= can take oneof these three values:

# Enforcing-selinux Security Policy isenforced.

# Permissive-selinux Prints Warningsinstead of enforcing.

# Disabled-selinux is fullydisabled.

#SELINUX =enforcing

Selinux=disabled

# selinuxtype= type Ofpolicy in use. Possible values are:

# Targeted-only targeted network Daemonsare protected.

# Strict-full SELinux protection.

selinuxtype=targeted

Save the exit, and then restart it OK.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.