CompTIA Linux+ (XK0-005) — Question 250
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?
Answer options
- A. Members of the wheel group can read files in /comptia.
- B. Newly created files in /comptia will have the sticky bit set.
- C. Other users can create files in /comptia.
- D. Only root can create flies in /comptia.
Correct answer: A
Explanation
The correct answer is A because the output indicates that the 'wheel' group has rwx permissions due to the default settings. Option B is incorrect as there is no mention of the sticky bit being set. Option C is wrong since 'other' users have no permissions, preventing them from creating files. Option D is not accurate because the group 'root' also has some permissions and is not restricted to only root creating files.