Advertisement
epikvision

Disabling SELinux

Aug 5th, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. ===To disable SELinux===
  2.  
  3. 0. Running getenforce on the terminal will output 'Enforcing':
  4. $ usr/sbin/getenforce
  5. $ Enforcing...
  6.  
  7. 1. When I checked /etc/selinux/config, it read
  8. *deliberately omitted spaces b/w # and first character*
  9.  
  10. # This file controls the state of SELinux on the system.
  11. # SELINUX= can take one of these three values:
  12. # enforcing - SELinux security policy is enforced.
  13. # permissive - SELinux prints warnings instead of enforcing.
  14. # disabled - No SELinux policy is loaded.
  15. SELINUX=enforced
  16. # SELINUXTYPE= can take one of these two values:
  17. # targeted - Targeted processes are protected,
  18. # mls - Multi Level Security protection.
  19. SELINUXTYPE=targeted
  20.  
  21. 2. I changed 'SELINUX=enforced' to read 'SELINUX=disabled'.
  22.  
  23. 3. I rebooted the system, and ran the command again.
  24. $ usr/sbin/getenforce
  25. $ Disabled
  26.  
  27. 4. I headed over to localhost/iiab and the Wikipedia page worked!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement