2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

selinuxの無効化

Last updated at Posted at 2024-04-24

はじめに

selinuxとは、システムにアクセスできるユーザーを管理者がより詳細に制御できるようにする Linux® システム 用のセキュリティ・アーキテクチャです。この設定値が有効になっているとうまくサービスにアクセスできない場合などがありますので必要な際に無効化してみてください。

無効化方法

以下コマンドにてSELinuxの設定を確認できます。

getenforce

出力結果がEnforcingなら有効化になっています。vi /etc/selinux/configにて設定ファイルを書き換えましょう。以下のように変更してください。

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#       targeted - Targeted processes are protected,
#       mls - Multi Level Security protection.
SELINUXTYPE=targeted

次に再起動をかけます。

reboot

参考文献

2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?