CompTIA
XK0-004 · Question #157
An administrator notices a directory on a web server named /var/www/html/old_reports that should no longer be accessible on the web. Which of the following commands will accomplish this task?
The correct answer is A. chmod 000 /var/www/html/old_reports. chmod 000 would make the file unreadable.
Security
Question
An administrator notices a directory on a web server named /var/www/html/old_reports that should no longer be accessible on the web. Which of the following commands will accomplish this task?
Options
- Achmod 000 /var/www/html/old_reports
- Bchgrp root /var/www/html/old_reports
- Cchown apache /var/www/html/old_reports
- Dsetenforce apache /var/www/html/old_reports
How the community answered
(35 responses)- A86% (30)
- B9% (3)
- C3% (1)
- D3% (1)
Explanation
chmod 000 would make the file unreadable.
Topics
#chmod#web server#directory permissions#access control
Community Discussion
No community discussion yet for this question.