nerdexam
CompTIA

XK0-005 · Question #735

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…

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…

Security

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.

How the community answered

(28 responses)
  • A
    7% (2)
  • B
    25% (7)
  • C
    18% (5)
  • D
    50% (14)

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

#ACLs#File Permissions#Directory Permissions#Default ACLs

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice