How to disable SELinux on Ubuntu?

To disable SELinux on Ubuntu, follow these steps:

  1. Open the terminal by pressing Ctrl+Alt+T on your keyboard.

  2. Type the following command to install the SELinux management tool:

    1
    sudo apt-get install selinux-utils
  3. Once the installation is complete, run the following command to disable SELinux:

    1
    sudo selinux-disable
  4. Restart your Ubuntu system to apply the changes made.

Note: Disabling SELinux may weaken your system’s security. Only disable SELinux if you know what you are doing or if it is causing issues. It’s recommended to consult with an expert if you are unsure.