CompTIA

SK0-005 practice question 10

CompTIA Server+ · free question 10 of 20

Question

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?
  • A. chmod 777 /home/Ann
  • B. chmod 666 /home/Ann
  • C. chmod 711 /home/Ann
  • D. chmod 754 /home/Ann Correct

Explanation

The directory is currently r-xr-xr-- (554: read and execute for the owner and group, read only for others), so Ann as the owner cannot write. chmod 754 sets rwxr-xr--, adding only the owner's write permission and leaving the group and others exactly as they were. 777 and 666 grant write access to everyone, and 666 also removes execute so the directory could not be entered; 711 removes read access that the group and others already had and is not the minimal change.

Practice the whole free set

Answer all 20 free SK0-005 questions with instant feedback, or unlock all 584 questions with Learn and Exam modes.