CompTIA
XK0-005 · Question #1836
A user reports issues accessing files in the /mnt/data directory. A Linux administrator inspects the contents of the directory and finds the following information: Which of the following is the most…
The correct answer is B. The directory access control list should be updated to allow the user to have read and write. The ACL shows only the default owner/group permissions and “other” is read-only. Granting the specific user read/write via an ACL entry (e.g. setfacl -m u:user:rwX /mnt/data) gives them the needed access without making the directory world-writable or changing ownership.
Security
Question
A user reports issues accessing files in the /mnt/data directory. A Linux administrator inspects the contents of the directory and finds the following information: Which of the following is the most secure method to resolve the user's issue?
Exhibit
Options
- AThe directory permission needs to be updated to be world writeable.
- BThe directory access control list should be updated to allow the user to have read and write
- CThe directory should be owned by the user to prevent others from writing to the directory.
- DThe user must be added to the wheel group to provide the user with adequate permissions.
How the community answered
(37 responses)- A11% (4)
- B81% (30)
- C3% (1)
- D5% (2)
Explanation
The ACL shows only the default owner/group permissions and “other” is read-only. Granting the specific user read/write via an ACL entry (e.g. setfacl -m u:user:rwX /mnt/data) gives them the needed access without making the directory world-writable or changing ownership.
Topics
#Linux Permissions#Access Control Lists (ACLs)#Security Best Practices#User Access Management
Community Discussion
No community discussion yet for this question.
