Ch7 Test Bank Answers Managing User Accounts - Answer Key + Test Bank | Linux Essentials 1e Rothwell by William Rothwell. DOCX document preview.
Linux Essentials for Cybersecurity (Rothwell/Kinsey)
Chapter 7 Managing User Accounts
1) Which of the following files stores the primary account data for local users of a Linux system?
A) /etc/shadow
B) /etc/gshadow
C) /etc/passwd
D) /etc/group
2) Which of the following files stores user passwords and password-related data for local users of a Linux system?
A) /etc/shadow
B) /etc/gshadow
C) /etc/passwd
D) /etc/group
3) If one line in the /etc/passwd file appears as root:x:0:0:root:/root:/bin/bash, which field in this example represents the user’s login shell?
A) /bin/bash
B) x
C) /root
D) 0:0
4) If one line in the /etc/passwd file appears as root:x:0:0:root:/root:/bin/bash, which field in this example represents the user’s home directory?
A) /bin/bash
B) x
C) /root
D) 0:0
5) To see if there are any errors in the /etc/passwd file, execute the __________ command while logged in as the root user.
A) pwck
B) grep
C) useradd
D) chfn
6) Which of the following refers to programs that run in the background, performing specific system tasks?
A) Controls
B) Modules
C) Arguments
D) Daemons
7) Which of the following default user accounts is used by the software that provides DNS (Domain Name System) functions?
A) bind
B) syslog
C) root
D) lp
8) If one line in the /etc/shadow file appears as bob:*:16484:3:90:5:30:16584:, which field in this example represents the minimum password age?
A) bob
B) 3
C) *
D) 16484
9) If one line in the /etc/shadow file appears as bob:*:16484:3:90:5:30:16584:, which field in this example represents the date of the last password change?
A) bob
B) 3
C) *
D) 16484
10) Which of the following options for the useradd command specifies the user’s UID?
A) -d
B) -u
C) -k
D) -g
11) Which of the following options for the useradd command displays the default values?
A) -d
B) -f
C) -D
D) -u
12) When a __________ directory is used, the entire contents of the specified directory are copied to the new user’s home directory.
A) skeleton
B) default
C) root
D) /bin
13) As an administrator, you can modify user accounts using the __________ command.
A) chfn
B) usermod
C) pwck
D) useradd
14) To remove a user and keep the user’s home directory and mail spool, use the __________ command without any additional arguments.
A) userdel
B) usermod
C) deluser
D) moduser
15) To create a restricted shell account for guest users, the first step is to use the __________ option with the useradd command and provide an argument of /bin/rbash.
A) -d
B) -m
C) -g
D) -s
16) Which of the following login servers can provide both user and group account data and is commonly used for network-based accounts on Linux distributions?
A) Active Directory and Samba
B) NIS
C) LDAP
D) None of the above
17) Which of the following commands can be used to provide some users with the ability to execute specific tasks as the administrator?
A) usermod
B) sudo
C) apt-get
D) visudo
18) PAM, a powerful tool that allows an administrator to provide many restrictions to user accounts, stands for which of the following?
A) Pluggable Account Modules
B) Private Authentication Modules
C) Pluggable Authentication Modules
D) Private Account Modules
19) Which of the following PAM categories is used to perform actions prior to and after a service has been provided to a user?
A) session
B) auth
C) password
D) account
20) Which of the following PAM modules is used to modify password policies?
A) pam_mkhomedir
B) pam_access
C) pam_env
D) pam_cracklib
Document Information
Connected Book
Answer Key + Test Bank | Linux Essentials 1e Rothwell
By William Rothwell