W3lc0m3 Fighter.




XBlackEGDisable SELinux on CentOS

XBlackEG Offline
#1

  1. Log in to your server

  2. Check the current SELinux status, run: [b]sestatus[/b]

  3. To disable SELinux on CentOS 7 temporarily, run: [b]sudo setenforce 0[/b]

  4. Edit the [b]/etc/selinux/config[/b] file and set the [b]SELINUX[/b] to [b]disabled[/b]

  5. Reboot the Linux server

  6. Verify it by running the [b]sestatus[/b] and [b]getenforce[/b] again
Quote:[b]sestatus[/b]
[Image: 159514613251361.png]

cat /etc/selinux/config

Quote:
Quote:SELINUX=enforcing
SELINUXTYPE=targeted

                                            (now will disabled SELinux )
Quote:yum install nano -y



Quote:nano /etc/selinux/config

Edit SELINUX=enforcing To SELINUX=disabled 

And Save ( ctrl + s | ctrl + x  | y | Enter ) 

[Image: 159514645910391.jpg]

now you can check 
[Image: 159514673469731.jpg]



Thanks
:RpS_cool:
Reply





Users browsing this thread:
4 Guest(s)



ABOUT Team of the X-fighter

All Right Reserved © Xp10.site