LFCS User and Group Management • Set 2
LFCS User and Group Management Practice Test 2 — 15 questions with explanations. Free, no signup.
A user named 'charlie' has just been added to the 'devops' group. However, when 'charlie' runs 'sudo -l', no sudo entries are shown. What is the most likely cause?
Refer to the exhibit.
$ sudo cat /etc/group | grep devops
devops:x:3001:alice,bob
$ sudo cat /etc/sudoers.d/devops
%devops ALL=(ALL) /usr/bin/systemctl
$ ls -l /usr/bin/systemctl
-rwxr-xr-x 1 root root 100000 Jan 1 12:00 /usr/bin/systemctl
$ sudo -l -U alice
User alice may run the following commands on this host:
(ALL) /usr/bin/systemctl
$ sudo -l -U bob
User bob may run the following commands on this host:
(ALL) /usr/bin/systemctl