XK0-005 · Question #130
XK0-005 Question #130: Real Exam Question with Answer & Explanation
The correct answer is D: chown production to change the ownership of the production_docs directory. The production group member is not allowed to modify the file because the owner of the directory is root and for group production is missing execute permission which is allowing to see inside directory and reach to file: -rw-r--r-- . Solution: change the directory owner from root
Question
A member of the production group issues the following command: echo "Monday through Friday" > /production_docs/days The command fails to execute, so the user obtains the following output: drwxr--r-- root production 0 Jun 16 2018 production -rw-r--r-- production production 4096 Jun 14 2018 days Which of the following commands should the user execute to BEST fix the issue?
Options
- Achmod g+w production to change the permissions of the days file
- Bchgrp root production_docs/days to change the group ownership of the production_docs/ file days
- Cchmod g+S production to set the GUID on the production_docs directory
- Dchown production to change the ownership of the production_docs directory
Explanation
The production group member is not allowed to modify the file because the owner of the directory is root and for group production is missing execute permission which is allowing to see inside directory and reach to file: -rw-r--r-- . Solution: change the directory owner from root to production or add execute permission to production group.
Community Discussion
No community discussion yet for this question.