Generic selectors
Только совпадения
Искать в заголовках
Искать в контенте

Способы отключить SELinux

SELinux – улучшенная система безопасности, которая дополняет классическую систему безопасности Linux. Для многих реализаций на Linux, SELinux избыточен и его можно без зазрения совести отключить. Существует множество способов, как это сделать. В этой статье приведены самые простые способы по его отключению для множества дистрибутивов основанных на Linux(CentOS; Fedora; Debian и т.п.).Способы отключить SELinux

Для начала убедимся, что SELinux функционирует. Для этого используем команду getenforce:

$ getenforce
Enforcing

Если возвратило Disabled, то это верный знак того, что SELinux отключен.
Более полную информацию по статусу SELinux, можно получить командой sestatus

$ sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted

Наша задача перевести SELinux status в положение – disabled.

Временно отключить SELinux на Centos

На всех свежих версиях Centos, SELinux находится в активном режиме. Чтобы его отключить, используем команду setenforce с параметром 0 либо Permissive (разрешающий).

$ setenforce 0

Оба варианта позволят SELinux не вмешиваться в работу операционной системы до её перезагрузки. После перезагрузки, SELinux возвратит свое исходное состояние.

Отключение SELinux

Чтобы SELinux не запускался после перезагрузки, открываем на редактирование /etc/selinux/config. Пример команды для редактора vi:

$ vi /etc/selinux/config

В файле меняем только параметр SELINUX. Ставим для него значение disabled. В итоге незакомментированные строки должны выглядеть так:

SELINUX=disabled
SELINUXTYPE=targeted

После редактирования необходимо перезагрузить систему.

Существует способ отключить Security-Enhanced Linux (SELinux), методом правки загрузчика GRUB. В файле загрузчика GRUB ставим параметр selinux=0 и соответственно перезагружаем систему.

Удаление SELinux

Хоть этот способ совсем не деликатный, но он всё же является действенным и приводит к тому, что операционная система начинает работать без вмешательства SELinux.
Для CentOS и других дистрибутивах основанных на Red Hat, выполняем:

yum remove selinux*

Для Debian и дистрибутивах на её основе:

apt-get remove selinux*

Все написанные выше действия, главным образом направленны на обеспечение работоспособности программ и служб, работающих на операционных системах семейства Linux в ущерб безопасности. Рекомендуется изучить SELinux, а после изучения настроить и вернуть его в активное – работающее состояние.

Метки:
Поделиться: 
13 комментариев
Межтекстовые Отзывы
Посмотреть все комментарии
AffiliateLabz

Great content! Super high-quality! Keep it up! :)

Hail Porn

Long living the peace

Extended Opportunity

Hey Guys, Warning: From February 2024, all existing email autoresponders will become obsolete! In fact, if you want to send marketing emails, promotional emails, or any other sort of emails starting in February 2024, you’ll need to comply with Gmail’s and Yahoo’s draconic new directives. They require regular marketers like you and I to setup complex code on sending domains… and existing autoresponders like Aweber and GetResponse are not helping: they’re requesting you do all the work, and their training is filled with complex instructions and flowcharts… How would you like to send unlimited emails at the push of a… Read more »

Extended Opportunity

Hey,

The moment we’ve all been waiting for is finally here – GoBuildr is now LIVE!

Create ultra-lightning-fast websites, sales funnels, eCommerce stores, and more in less than 60 seconds, with just a keyword!

Say goodbye to the limitations of traditional page builders. GoBuildr combines the functionality of 16 different tools into one powerful app, supercharged with AI-assisted technology.

⇒ Click Here To Checkout Demo https://ext-opp.com/GoBuildr

Extended Opportunity

He Got 256,354 Free Views With AI…

Can you believe it?

People spend thousands of dollars to get that kind of result…

My friend Kundan just did it for free…

He only used his new app… AI ScreenSnap…

It’s the world’s first AI app that can generate videos with the power of Video-Exclusive AI Engine…

That can edit, record, and generate videos with just a few clicks… with zero experience…

Click here now and watch AI ScreenSnap in action https://ext-opp.com/AIScreenSnap

Extended Opportunity

A.I Create & Sell Unlimited Audiobooks to 2.3 Million Users — https://ext-opp.com/ECCO

Extended Opportunity

A.I Create & Sell Unlimited Audiobooks to 2.3 Million Users — https://ext-opp.com/ECCO

Extended Opportunity

Create Stunning Ebooks In 60 Seconds — https://ext-opp.com/AIEbookPal

Extended Opportunity

Elevate Learning Adventures with The Story Shack! A library of 200+ high-quality books tailored to the school curriculum. StoryShack’s Build a Book bundle features word searches, quizzes, creative coloring pages, high-quality images, and top SEO keywords. StoryShack’s StoryCraft Pro bundle includes the «Melody Minds Library» with 350+ music tracks and «AnimateMasters Pro,» offering 30+ categories of animations. And as if that’s not enough, here are the MEGA BONUSES: ✔ 100+ Mega Mazes Pack ✔ 100+ Sudoku Elements Pack ✔ 100+ Comic Book Template Pack ✔ 100+ Handwriting Practice Template Pack ✔ 100+ Kids Story Book Templates ✔ Canva Book Templates… Read more »

Extended Opportunity

Millions of Free Traffic with AI Tools — https://ext-opp.com/AIVault