exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 243 discussion

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

A Linux engineer finds multiple failed login entries in the security log file for application users. The Linux engineer performs a security audit and discovers a security issue. Given the following:

# grep -iE '*www*|db' /etc/passwd
www-data:x:502:502:www-data:/var/www:/bin/bash
db:x:505:505:db:/opt/db:/bin/bash

Which of the following commands would resolve the security issue?

  • A. usermod -d /srv/www-data www-data && usermod -d /var/lib/db db
  • B. passwd -u www-data && passwd -u db
  • C. renice -n 1002 -u 502 && renice -n 1005 -u 505
  • D. chsh -s /bin/false www-data && chsh -s /bin/false db
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
68c732d
Highly Voted 1 year ago
Selected Answer: D
Application users should not be allowed for shell login. Disable shell for users to stop failed logins
upvoted 5 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 ...