XK0-005 · Question #10080
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…
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…
Question
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
How the community answered
(37 responses)- A22% (8)
- B14% (5)
- C5% (2)
- D59% (22)
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.
Topics
Community Discussion
No community discussion yet for this question.