How Can I Enable SELinux on an ECS Running CentOS?
Symptom
SELinux is disabled on ECSs running CentOS 7.5 by default. After I enable SELinux by running /etc/selinux/config and enter the login password, the login failed.
This section describes how to resolve this issue based on enabled SELinux.
Solution
The operations described in this section are performed on ECSs running CentOS 7.5.
- Run the following command to change SELINUX=disabled in the SELinux configuration file to SELINUX=enforcing:
vim /etc/selinux/config
- Run the following command to automatically enable SELINUX on the file system upon ECS restarting:
- Run the following command to restart the ECS for the configuration to take effect:
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot