CompTIA Linux+ (XK0-004) — Question 2
A Linux 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?
Answer options
- A. chmod 710 <application name>
- B. chmod 730 <application name>
- C. chmod 750 <application name>
- D. chmod 760 <application name>
Correct answer: C
Explanation
The correct command is 'chmod 750 <application name>' as it grants the owner full permissions (7), the group read and execute permissions (5), and denies access to others (0). The other options either give too much access to others or do not meet the specified group permissions.