linux+ Ch.10 HW
UIDs and GIDs are unique to the system and once used can never be reused. True or False?
false
Along with a listing of user accounts, the /etc/passwd file also contains information on account expiry. True or False?
false
What is the name of the utility used to rotate log files?
logrotate** jetpack syslog logbackup
Which command can be used to send a print job to the default printer named Printer1? (Choose all that apply.)
lp Printer1 file lp -d Printer1 file** lp -m Printer1 file lp file**
Which command can be used to alter the primary group associated with a given user temporarily?
newgrp** usermod chggrp gpasswd
Which command would you use to unlock a user account?
open username useradd -U username usermod -U username** unlock username
The process of sending print jobs from the print queue to the printer is called?
redirecting printing** queuing spooling
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
section, priority process, degree service, precedents facility, priority**
Most log files on the system are found in which directory?
/etc/logfiles /var/log** /dev/log /etc/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** /etc/default/useradd /etc/skel /etc/passwd
What is the name of the file that contains a listing of all users on the system and their home directories?
/etc/password /etc/users /etc/shadow /etc/passwd**
What is the name used to describe a user providing a user name and password to log in to a system?
authentication** validation login authorization
What command can you use to view journald log entries on a system that uses Systemd?
catlog less syslog journalctl**
You can clear a log file simply by redirecting nothing in to it. True or False?
true
You can lock a user account by changing the default login shell to an invalid shell in /etc/passwd. True or False?
true
Which command is used to delete a user account?
userdel username** del username usermaod -d username rm username
Which command can you use to lock a user account?
usermod -L username** useradd -L username secure username lock username
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 -u Printer1-17 Printer1-21 cancel Printer1-17 Printer1-21** cancel -a Printer1-17 Printer1-21 cancel 17 21
When a printer is disabled, ________.
the print queue redirects all print jobs sent to it to /dev/null the print queue does accept jobs into the print queue and holds them there until the printer is enabled again** the printer appears as off-line when a lp request is sent the print queue does not accept jobs and sends a message to the user noting that the printer is unavailable
When a printer is rejecting requests,____________.
the print queue redirects all print jobs sent to it to /dev/null the printer appears as off-line when a lp request is sent the print queue does accept jobs into the print queue and holds them there until the printer is accepting requests again the print queue does not accept jobs and sends a message to the user noting that the printer is unavailable**