CompTIA Study Materials
AWS Study Materials
AWS Certified Developer Associate AWS Certified Developer Associate
AWS Certified Developer Associate DVA-C02
AWS Certified Solutions Architect Associate AWS Certified Solutions Architect Associate
AWS Certified Solutions Architect Associate SAA-C03
AWS Cloud Practitioner AWS Cloud Practitioner
AWS Cloud Practitioner CLF-C02
Microsoft Study Materials
Microsoft Azure Fundamentals Microsoft Azure Fundamentals
Microsoft Azure Fundamentals AZ-900

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?

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

  • chcon -t httpd_sys_content_t /data/webapp

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

  • restorecon -v /data/webapp

This question is for objective:
Security
Your Score:
Security
System Management
Scripting, Containers, and Automation
Troubleshooting
SAVE $45