Last active
October 25, 2017 19:35
-
-
Save jeff1evesque/676dd8ae6e034b04ee00eb9a4f97b4ff to your computer and use it in GitHub Desktop.
Selinux change context
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## immediate changes | |
chcon -Rv --type=httpd_sys_content_t file-name | |
## persistent changes | |
semanage fcontext -a -t httpd_sys_script_exec_t 'docroot(/.*)?' | |
restorecon -RFv docroot/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment