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.
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
Options
- Achmod 710 <application name>
- Bchmod 730 <application name>
- Cchmod 750 <application name>
- Dchmod 760 <application name>
How the community answered
(24 responses)- A4% (1)
- B13% (3)
- C79% (19)
- D4% (1)
Why each option
To set specific file permissions for the owner, group, and others using octal notation, the `chmod` command is utilized.
The command `chmod 710` would grant the group only execute permissions (1), which is incorrect as they need read and execute.
The command `chmod 730` would grant the group write and execute permissions (3), which is incorrect as they only need read and execute.
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.
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
Community Discussion
No community discussion yet for this question.
