Article ID: 115626, created on Mar 1, 2013, last review on May 11, 2014

  • Applies to:
  • Virtuozzo
  • Virtuozzo containers for Linux
  • Virtuozzo hypervisor


To temporarily disable SELinux (until reboot), use the setenforce 0 command.

To disable SELinux permanently, follow these steps:

  1. Open the file /etc/selinux/config in a text editor and locate the line starting with SELINUX=.

  2. Change the line to SELINUX=disabled and save the file.

  3. If you cannot find this file, open the file /boot/grub/grub.conf in a text editor and add selinux=0 to the list of kernel parameters:

    title CentOS (2.6.32-220.13.1.el6.x86_64)
       root (hd0,0)
       kernel /boot/vmlinuz-2.6.32-220.13.1.el6.x86_64 ro root=UUID=ec4ed555-a0a2-413e-9c95-678543c465ce quiet selinux=0
       initrd /boot/initramfs-2.6.32-220.13.1.el6.x86_64.img
  4. Restart the server to apply the changes.

Search Words



a26b38f94253cdfbf1028d72cf3a498b 2897d76d56d2010f4e3a28f864d69223 e8e50b42231236b82df27684e7ec0beb d02f9caf3e11b191a38179103495106f 0dd5b9380c7d4884d77587f3eb0fa8ef

Email subscription for changes to this article
Save as PDF