Free CompTIA Linux+ XK0-005 Practice Question

An administrator needs to modify the file context type for a custom directory, /data/webapp, to match the type used by web content in an SELinux environment. Which command should they use to achieve this, ensuring the default policy is maintained for consistency?

  • restorecon -v /data/webapp

  • semanage boolean -m --on httpd_sys_content_t '/data/webapp'

  • chcon -t httpd_sys_content_t /data/webapp

  • semanage fcontext -a -t httpd_sys_content_t '/data/webapp(/.*)?'

This question's topic:
CompTIA Linux+ XK0-005 / 
Security
Your Score:

Check or uncheck an objective to set which questions you will receive.

SAVE $45