exam questions

Exam XK0-004 All Questions

View all questions & answers for the XK0-004 exam

Exam XK0-004 topic 1 question 145 discussion

Actual exam question from CompTIA's XK0-004
Question #: 145
Topic #: 1
[All XK0-004 Questions]

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?

  • A. chmod 000 /var/www/html/old_reports
  • B. chgrp root /var/www/html/old_reports
  • C. chown apache /var/www/html/old_reports
  • D. setenforce apache /var/www/html/old_reports
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Sfutrell
Highly Voted 4 years, 2 months ago
A is my best guess as well.
upvoted 12 times
...
ssc1982
Highly Voted 4 years, 4 months ago
D is not a valid command. I think A is right
upvoted 9 times
...
DiaaEmara
Most Recent 2 years, 5 months ago
A https://stackoverflow.com/questions/37893502/php-wbepage-file-is-still-read-after-chmod-000-command-on-linux
upvoted 1 times
...
examtopics_htc
2 years, 6 months ago
Don't know why you'd ever make a file 000, but it's the right answer here.
upvoted 2 times
...
emaildeprueba
2 years, 11 months ago
A is correct. chmod 000 would make the file unreadable.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago