XK0-005 · Question #735
XK0-005 Question #735: Real Exam Question with Answer & Explanation
The correct answer is D: Only root can create files in /comptia.. The output shows the permissions for the /comptia directory: user::rwx: The owner (root) has read, write, and execute permissions. group::r-x: The group (root) has read and execute permissions, but no write permission. other::---: Other users have no permissions. The default ACL
Question
A systems administrator created a new directory with specific permissions. Given the following output: # file: comptia # owner: root * group: root user::rwx group::r-x other::--- default:user::rwx default:group::r-x default:group:wheel:rwx default:mask::rwx default:other::--- Which of the following permissions are enforced on /comptia?
Options
- AMembers of the wheel group can read files in /comptia.
- BNewly created files in /comptia will have the sticky bit set.
- COther users can create files in /comptia.
- DOnly root can create files in /comptia.
Explanation
The output shows the permissions for the /comptia directory: user::rwx: The owner (root) has read, write, and execute permissions. group::r-x: The group (root) has read and execute permissions, but no write permission. other::---: Other users have no permissions. The default ACL entries indicate that: New files created in the directory will inherit the specified permissions. The wheel group has (read, write, and execute) as the default permission for new files, but this does not apply to existing files or directories directly. Enforced Permissions: Only root (the owner) has write permission (rwx) for the /comptia directory, meaning only root can create files in /comptia. The group (root) and others do not have write permission.
Topics
Community Discussion
No community discussion yet for this question.