CompTIA Linux+ Exam XK0-005 Question # 64 Topic 7 Discussion

CompTIA Linux+ Exam XK0-005 Question # 64 Topic 7 Discussion

XK0-005 Exam Topic 7 Question 64 Discussion:
Question #: 64
Topic #: 7

A Linux administrator provisioned a new web server with custom administrative permissions for certain users. The administrator receives a report that user1 is unable to restart the Apache web service on this server. The administrator reviews the following output:

[ root@server ] # id user1

UID=1011 (user1) gid=1011 (USER1) groups=1011 (user1), 101 (www-data), 1120 (webadmin)

[ root@server ] # cat /etc/sudoers.d/custom.conf

user1 ALL=/usr/sbin/systemctl start httpd, /usr/sbin/systemctl stop httpd

webadmin ALL=NOPASSWD: /etc/init.d.httpd restart, /sbin/service httpd restart, /usr/sbin/apache2ctl restart

#%wheel ALL=(ALL) NOPASSWD: ALL

Which of the following would most likely resolve the issue while maintaining a least privilege security model?


A.

User1 should be added to the wheel group to manage the service.


B.

User1 should have "NOPASSWD:" after the "ALL=" in the custom. conf.


C.

The wheel line in the custom. conf file should be uncommented.


D.

Webadmin should be listed as a group in the custom. conf file.


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.