CompTIA
XK0-004 · Question #214
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?
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/
How the community answered
(20 responses)- A95% (19)
- C5% (1)
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
#chmod#file permissions#recursive permissions#access control
Community Discussion
No community discussion yet for this question.