LFCS User and Group Management • Complete Question Bank
Complete LFCS User and Group Management question bank — all 0 questions with answers and detailed explanations.
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/systemctlDrag steps to the numbered slots on the right, or tap a step then tap a slot.
Drag steps to the numbered slots on the right, or tap a step then tap a slot.
Drag steps to the numbered slots on the right, or tap a step then tap a slot.
Drag a concept onto its matching description — or click a concept then click the description.
Boot loader that loads the kernel
Initial RAM filesystem used before root is mounted
Init system and service manager
Core of the operating system
Program that loads the OS into memory
Drag a concept onto its matching description — or click a concept then click the description.
Host-specific configuration files
Variable data like logs and databases
Secondary hierarchy for user utilities
Virtual filesystem for process and kernel info
Temporary files
Drag a concept onto its matching description — or click a concept then click the description.
A disk or partition used by LVM
Pool of physical volumes
Virtual block device created from a volume group
Smallest allocatable unit in a physical volume
Maps to a physical extent in a logical volume
Refer to the exhibit: $ cat /etc/passwd | grep alice alice:x:1001:1001:Alice Smith:/home/alice:/bin/bash $ ls -ld /home/alice drwxr-x--- 2 root root 4096 Jan 10 10:00 /home/alice
Refer to the exhibit: $ cat /etc/group users:x:100:alice,bob,charlie staff:x:500:bob,charlie projectx:x:600:alice $ groups alice alice : users
Refer to the exhibit: $ chage -l bob Last password change : Jan 15, 2025 Password expires : Apr 15, 2025 Password inactive : never Account expires : Mar 01, 2025 Minimum number of days between password change : 0 Maximum number of days between password change : 90 Number of days of warning before password expires : 7
Refer to the exhibit. # cat /etc/passwd root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin admin:x:0:0:System Administrator:/home/admin:/bin/bash user1:x:1001:1001:User One:/home/user1:/bin/bash
Refer to the exhibit. # ls -ld /shared drwxrws--- 3 root developers 4096 Apr 10 10:00 /shared # ls -l /shared drwxrws--- 2 alice developers 4096 Apr 10 10:00 project -rw-rw---- 1 bob developers 1024 Apr 10 10:05 file.txt
Refer to the exhibit. # useradd -u 1005 -G wheel,dbadmin -m -k /etc/skel newuser useradd: user 'newuser' already exists #
Refer to the exhibit. ``` $ groups alice alice : alice project $ id bob uid=1002(bob) gid=1002(bob) groups=1002(bob),1003(project) $ ls -ld /data/project drwxrws--- 2 root project 4096 Apr 12 10:00 /data/project ```