Skip to content

Instantly share code, notes, and snippets.

@ishikawa84g
Created August 29, 2012 06:53
Show Gist options
  • Save ishikawa84g/3507651 to your computer and use it in GitHub Desktop.
Save ishikawa84g/3507651 to your computer and use it in GitHub Desktop.
SELinux を無効に設定し、カレント状態を Permissive にする。OS を再起動すると完全無効化される。
#!/bin/bash
sestatus ; echo
sed -i "s/\(^SELINUX=\).*/\1disabled/" /etc/selinux/config
setenforce 0
sestatus
# shutdown -r 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment