Turn off SELinux

Source: Internet
Author: User

Turn off SELinux

After executing the ls-l permissions, it is found that there is a point after 9 for the permission. This point is controlled by Sellinux, and when you close SELinux, the created file does not appear.


1. View the status of SElinux

[Email protected] ~]# getenforce

enforcing//Open State


2. Change to relaxed state. Immediate effect, restart failure.

Modified to loose state, Setenforce 0. The relaxed state is also open, and there will be that point.

Change back to On State Setenforce 1.

[Email protected] ~]# setenforce 0

[Email protected] ~]# Getenforce

Permissive


3. Turn off SELinux and reboot to take effect.

Vim/etc/selinux/config

Change selinux=enforcing to selinux=disabled

[[email protected] ~]# init 6

[Email protected] ~]# Getenforce

Disabled


Turn off SELinux

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.