Skip to content

Instantly share code, notes, and snippets.

@csegura2011
Created July 25, 2017 00:25
Show Gist options
  • Save csegura2011/26f135d50eb134d98e6e219e6b298865 to your computer and use it in GitHub Desktop.
Save csegura2011/26f135d50eb134d98e6e219e6b298865 to your computer and use it in GitHub Desktop.
# be sure sed stream editor is installed in the system
$ yum install -y sed
# using sed you can edit the line containing in /etc/sysconfig/selinux file
$ sed -i ‘s/\(^SELINUX=\).*/\SELINUX=disabled/’ /etc/sysconfig/selinux
$ sed -i ‘s/\(^SELINUX=\).*/\SELINUX=disabled/’ /etc/selinux/config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment