CompTIA Server+ (SK0-005) — Question 77
A server administrator receives a report that Ann, a new user, is unable to save a file to her home directory on a server. The administrator checks Ann's home directory permissions and discovers the following: dr-xr-xr-- /home/Ann
Which of the following commands should the administrator use to resolve the issue without granting unnecessary permissions?
Answer options
- A. chmod 777 /home/Ann
- B. chmod 666 /home/Ann
- C. chmod 711 /home/Ann
- D. chmod 754 /home/Ann
Correct answer: D
Explanation
The correct command is 'chmod 754 /home/Ann' because it grants Ann the necessary read, write, and execute permissions for her home directory while still restricting access for others. The other options either provide too many permissions (A and B) or do not grant sufficient permissions for saving files (C).