nerdexam
CompTIA

XK0-005 · 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…

The correct answer is C. chmod 750 <application name>. To set specific file permissions for the owner, group, and others using octal notation, the chmod command is utilized.

System Management

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-005 question #5 exhibit

Options

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

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    13% (3)
  • C
    79% (19)
  • D
    4% (1)

Why each option

To set specific file permissions for the owner, group, and others using octal notation, the `chmod` command is utilized.

Achmod 710 <application name>

The command `chmod 710` would grant the group only execute permissions (1), which is incorrect as they need read and execute.

Bchmod 730 <application name>

The command `chmod 730` would grant the group write and execute permissions (3), which is incorrect as they only need read and execute.

Cchmod 750 <application name>Correct

The octal value 7 (read=4, write=2, execute=1) grants read, write, and execute permissions to the owner. The octal value 5 (read=4, execute=1) grants read and execute permissions to members of the group. The octal value 0 grants no permissions to everyone else, precisely matching the requirements.

Dchmod 760 <application name>

The command `chmod 760` would grant the group read and write permissions (6), which is incorrect as they should only have read and execute access.

Concept tested: Linux file permissions (chmod octal)

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

Topics

#Linux permissions#chmod command#Octal notation#File access control

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice