If you need to configure selinux turn on or turn off that you can read this post .
- first login to ssh
-
type code below and inter
nano /etc/sysconfig/selinux
-
the result should be like this
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=permissive
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
- You can change the value of SELINUX with your needed configuration .
- for saving the configurtaion file heat CTRL+x and then type y to save and exit .
- You should reboot the server after selinux confguration .
If you need to see SELinux Status you can use code below
sestatus
the result should be like this
root@server [~]# sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: permissive
Policy version: 24
Policy from config file: targeted
Regards
MonoVM.com