Loading...
Advance Linux

Selinux

###### TO CHECK THE SELINUX  STATUS ####

#sestatus

###### TO  ENABLE THE SELINUX  SERVICE ####

#vi  /etc/selinux/config

SELINUX=enforcing

:wq   ( save & quit )

#init 6   ( to reboot  the pc )

#sestatus   ( to check the selinux status )

#### TO  CHECK THE SELINUX PERMISSION ON FILES ##

#ll -Z

#### TO  CHECK THE SELINUX MODE ON SERVICES ###

#cd  /sys/fs/selinux  ( to enter the dir )

#ls  ( to check )

#cd  booleans  ( to enter the dir )

#ls  ( to check )

#getenforce    http_use_nfs

#### TO APPLY THE SELINUX PERMISSION ON SERVICES #

#setsebool    httpd_use_nfs  1   ( to enable )

#getsebool    httpd_use_nfs      ( to check )

#setsebool    httpd_use_nfs  0   ( to disable )

#getsebool    httpd_use_nfs      ( to check

Leave a Reply

Your email address will not be published. Required fields are marked *