Selinux disable temporarily or permanently


Sometime when you run an application in Linux, it starts and suddenly stops or just doesn’t work. Then you find that its selinux which is stopping you to run your application.

Selinux is good security feature of Linux stop you to execute malicious applications. But it need to disable when you need to run your self developed application. You can check the selinux status by using following command:

# cat /selinux/enforce

1

If it will show 1, that means selinux enforcing is enabled.

You can disable that selinux temporarily or permanently. Use following methods to disable it.

Disable Temporarily:

To disable selinux temporarily set the 0 to /selinux/enforce file.

# echo 0 > /selinux/enforce

Read more.

Advertisement

One thought on “Selinux disable temporarily or permanently

  1. Pingback: Chroot SFTP Users for Web Hosting Server. | Linux Explore

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s