nerdexam
CompTIA

XK0-004 · Question #5

A Linux systems administrator needs to set permissions on an application with the following parameters: - The owner of the application should be able to read, write, and execute the application. - Mem

The correct answer is C. chmod 750 <application name>. This question tests the ability to translate human-readable permission requirements into octal notation for the chmod command.

Security

Question

A Linux systems administrator needs to set permissions on an application with the following parameters:

  • The owner of the application should be able to read, write, and

execute the application.

  • Members of the group should be able to read and execute the

application.

  • Everyone else should not have access to the application.

Which of the following commands would BEST accomplish these tasks?

Exhibit

XK0-004 question #5 exhibit

Options

  • Achmod 710 <application name>
  • Bchmod 730 <application name>
  • Cchmod 750 <application name>
  • Dchmod 760 <application name>

How the community answered

(34 responses)
  • A
    3% (1)
  • C
    91% (31)
  • D
    6% (2)

Why each option

This question tests the ability to translate human-readable permission requirements into octal notation for the chmod command.

Achmod 710 <application name>

chmod 710 grants the owner full access and execute-only to the group (1), omitting group read permission which is required.

Bchmod 730 <application name>

chmod 730 grants the owner full access but gives the group write and execute (3) without read, which does not match the requirement.

Cchmod 750 <application name>Correct

Octal 750 breaks down as: owner = 7 (read 4 + write 2 + execute 1), group = 5 (read 4 + execute 1), others = 0 (no permissions). This exactly satisfies all three stated requirements - full owner access, read/execute for group, and no access for others.

Dchmod 760 <application name>

chmod 760 grants the owner full access and the group read/write (6) without execute, failing to meet the group execute requirement.

Concept tested: Linux octal chmod permission notation

Source: https://man7.org/linux/man-pages/man1/chmod.1.html

Topics

#chmod#octal permissions#user group other#file permissions

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice