Chapter 10 Questions
You can clear a log file simply by redirecting nothing into it. True or False? 1. True 2. False
Answer: 1. True
You can lock a user account by changing the default login shell to an invalid shell in /etc/passwd. True or False? 1. True 2. False
Answer: 1. True
Which command can you use to lock a user account? 1. Usermod -L username 2. useradd -L username 3. Secure username 4. Lock username
Answer: 1. Usermod -L username
What command can you use to view journald log entries on a system that uses Systemd? 1. journalctl 2. less 3. catlog 4. syslog
Answer: 1. journalctl
Along with a listing of user accounts, the /etc/passwd file contains information on account expiry. True or False? 1. True 2. False
Answer: 2. False
When a printer is rejecting requests,____________. 1. The printer queue redirects all print jobs sent to it to /dev/null 2. The printer appears as offline when an Ip request is sent 3. The print queue does accept jobs into the print queue and holds them there until the printer is accepting requests again 4. The print queue does not accept jobs and sends a message to the user noting that the printer is unavailable
Answer: 4. The print queue does not accept jobs and sends a message to the user noting that the printer is unavailable
You use lpstat and determine that a user named User1 has placed two large print jobs in the queue for Printer1 that have yet to start printing. They have print job IDs of Printer1-17 and Printer1-21, respectively. Which command would you use to remove these two jobs from the print queue? 1. cancel -a Printer1-17 Printer 1-21 2. cancel 17 21 3. cancel -u Printer1-17 Printer1-21 4. cancel Printer1-17 Printer1-21
Answer: 4. cancel Printer1-17 Printer1-21
Which command would you use to unlock a user account? 1. passwd -u username 2. open username 3. unlock username 4. useradd -U username
Answer: 1. passwd -u username
Which file contains default information such as UID and GID ranges and minimum password length to be used at user creation? 1. /etc/skel 2. /etc/login.defs 3. /etc/passwd 4. /etc/default/useradd
Answer: 2. /etc/login.defs
What is the name of the file that contains a listing of all users on the system and their home directories? 1. /etc/shadow 2. /etc/passwd 3. /etc/users 4. /etc/password
Answer: 2. /etc/passwd
What is the term used to describe a user providing a username and password to log in to a system? 1. Validation 2. Authentication 3. Authorization 4. Login
Answer: 2. Authentication
UIDs and GIDs are unique to the system and, once used, can never be reused. True or False? 1. True 2. False
Answer: 2. False
Which command can be used to send a print job to the default printer named Printer1? (Choose all that apply.) 1. IP -m Printer1 file 2. IP -d Printer1 file 3. Ip file 4. Ip Printer1 file
Answer: 2. IP -d Printer1 file 3. Ip file
The process of sending print jobs from the print queue to the printer is called _____. 1. Redirecting 2. Printing 3. Queuing 4. Spooling
Answer: 2. Printing
Which command can be used to temporarily alter the primary group associated with a given user? 1. gpasswd 2. newgrp 3. usermod 4. chggrp
Answer: 2. newgrp
Which command is used to delete a user account? 1. usermod -d username 2. userdel username 3. del username 4. rm username
Answer: 2. userdel username
Most log files on the system are found in which directory? 1. /dev/log 2. /etc/logfiles 3. /var/log 4. /etc/log
Answer: 3. /var/log
When referring to the /etc/rsyslog.conf file, __________ specifies information from a certain area of the system, whereas ________ is the level of importance of that information. 1. process, degree 2. service, precedents 3. facility, priority 4. section, priority
Answer: 3. facility, priority
What is the name of the utility used to rotate log files? 1. syslog 2. logbackup 3. logrotate 4. jetpack
Answer: 3. logrotate
When a printer is disabled, ________. 1. The print queue does not accept jobs and sends a message to the user noting that the printing is unavailable 2. The printer appears as offline when an IP request is sent 3. The print queue redirects all print jobs sent to it to /dev/null 4. The print queue accepts jobs into the print queue and holds them there until the printer is enabled again
Answer: 4. The print queue accepts jobs into the print queue and holds them there until the printer is enabled again
