"Go from MoS article" method for checking SELinux status

Source: Internet
Author: User

Ways to check the SELinux status:

From:
How to Check for whether SELinux is Enabled or Disabled (document ID 432988.1)

There are 3 modes of SELinux:
Enforcing (or known as enabled), Disabled or Permissive.

Permissive mode loads the SELinux software, but doesn ' t enforce the rules, only logging is performed.

You can use the following command to check the status of SELinux:

[Email protected] ~]# uname-alinux servera 2.6.18-308.el5 #1 SMP Fri Jan 17:17:51 EST. x86_64 x86_64 x86_64 gnu/l Inux[[email protected] ~]# sestatusselinux Status:                 disabled[[email protected] ~]# Getenforcedisabled[[email Protected] ~]#

If you are in the program to determine the status of SELinux, use the following command:

[Email protected] ~]#/usr/sbin/selinuxenabled; If [$?-ne 0]; Then echo "DISABLED"; else echo "ENABLED"; Fidisabled

"Go from MoS article" method for checking SELinux status

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.