Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: validbest

Exam XK0-005 All Questions
Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

CompTIA Linux+ XK0-005 Question # 97 Topic 10 Discussion

XK0-005 Exam Topic 10 Question 97 Discussion:
Question #: 97
Topic #: 10

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


Get Premium XK0-005 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.