nerdexam
CompTIACompTIA

XK0-005 · Question #214

XK0-005 Question #214: Real Exam Question with Answer & Explanation

The correct answer is A: chmod -R 400 /new_directory/. Read = 4, Write = 2, Execute = 1 Therefore the directory would need to be 400 and need to be recursive with the -R option.

Security

Question

A Linux user wants to give read-only permissions to a directory and its contents. Which of the following commands will allow the user to accomplish this task?

Options

  • Achmod -R 400 /new_directory/
  • Bchmod -R 600 /new_directory/
  • Cchmod 400 /new_directory/
  • Dchmod 600 /new_directory/

Explanation

Read = 4, Write = 2, Execute = 1 Therefore the directory would need to be 400 and need to be recursive with the -R option.

Topics

#Linux permissions#chmod command#File system security#Access control

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions