Ch. 10
The System Log Daemon, rsyslogd, creates a socket for other system processes to write to. What is the path to this socket?
/dev/log
Which file contains default information such as UID and GID ranges and minimum password length to be used at user creation?
/etc/login.defs
What is the name of the file that contains a listing of all users on the system and their home directories?
/etc/passwd
Kisha manages a Linux file server that contains user accounts for all of the users in her organization. She would like to ensure that when new user accounts are created, an introduction.txt file is automatically copied to their home directory. In which of the following directories can Kisha place the introduction.txt such that it will be copied to new user home directories?
/etc/skel
You want to limit the size of the journald database, overwriting events as needed. What file must you modify to specify a maximum database size?
/etc/systemd/journald.conf
Most log files on the system are found in which directory?
/var/log
Along with a listing of user accounts, the /etc/passwd file contains information on account expiry.
False
UIDs and GIDs are unique to the system and, once used, can never be reused.
False
The process of sending print jobs from the print queue to the printer is called _____.
Printing
You can clear a log file simply by redirecting nothing into it.
True
You can lock a user account by changing the default login shell to an invalid shell in /etc/passwd.
True
What is the term used to describe a user providing a user name and password to log in to a system?
authentication
Which of the following entries could be added to the rsyslog.conf configuration file to ensure that network login events of warning priority and more serious are logged immediately to the /var/log/logins file?
authpriv.warn -/var/log/logins
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?
cancel Printer1 -17 Printer1 -21
Uli administers a Linux print server on the network. The printer named printer5 on the print server has experienced a hardware failure and Uli wants to let users immediately know that the printer is unavailable should they attempt to submit a print job. What command should Uli run?
cupsreject -r "Unavailable. Please submit your job to another printer" printer5
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.
facility, priority
Yasir has been tasked with setting up a new Linux print server in his organization. He has installed CUPS and would like to access the CUPS web administration tool to complete the configuration. What URL should Yasir use within a web browser to access this tool?
http://servername:631
What command can you use to view journald log entries on a system that uses Systemd?
journalctl
What is the name of the utility used to rotate log files?
logrotate
Which of the following commands can you use to send a print job to printer1? (Choose all that apply.)
lp -d printer1 mydocument.txt AND lpr -P printer1 mydocument.txt
Which command can be used to send a print job to the default printer named Printer1? (Choose all that apply.)
lp file and lp -d Printer1 file
Which of the following commands will display the print jobs in the print queue for printer1 only?
lpstat -o printer1
Which command can be used to temporarily alter the primary group associated with a given user?
newgrp
Which command would you use to unlock a user account?
passwd -u username
Which of the following two commands can be used to add custom log file entries to the journald database? (Choose two.)
systemd-cat and logger
When a printer is disabled, _____.
the print queue accepts jobs into the print queue and holds them there until the printer is enabled again
When a printer is rejecting requests, _____.
the print queue does not accept jobs and sends a message to the user noting that the printer is unavailable
Which of the following commands can be used to delete a user account?
userdel
Which command is used to delete a user account?
userdel username
Which command can you use to lock a user account?
usermod -L username
