Linux Ch.10

Ace your homework & exams now with Quizwiz!

Which file contains default information such as UID and GID ranges and minimum password length to be used at user creation? a. /etc/skel b. /etc/passwd c. /etc/login.defs d. /etc/default/useradd

c. /etc/login.defs Most default user configuration, including UID and GID ranges, are specified within /etc/login.defs.

Most log files on the system are found in which directory? a. /etc/logfiles b. /etc/log c. /var/log d. /dev/log

c. /var/log

What is the name of the utility used to rotate log files? a. syslog b. jetpack c. logrotate d. logbackup

c. logrotate

Along with a listing of user accounts, the /etc/passwd file contains information on account expiry. a. True b. False

b. False Password expiry information is stored within /etc/shadow.

UIDs and GIDs are unique to the system and, once used, can never be reused. a. True b. False

b. False You can reuse the UIDs and GIDs of deleted users and groups for new users and groups.

Which command can you use to lock a user account? a. lock username b. secure username c. usermod -L username d. useradd -L username

c. usermod -L username You can use the -L option to the usermod command to lock a user account.

Which of the following command can you use to back up a disk in an Ubuntu system? Neither tar nor dd Both tar and dd Only dd Only tar

Only dd

You can lock a user account by changing the default login shell to an invalid shell in /etc/passwd. a. True b. False

a. True A user with an invalid shell cannot log into the system.

When a printer is disabled, _____. a. the print queue does not accept jobs and sends a message to the user noting that the printer is unavailable b. the print queue accepts jobs into the print queue and holds them there until the printer is enabled again c. the printer appears as offline when an lp request is sent d. the print queue redirects all print jobs sent to it to /dev/null

b. the print queue accepts jobs into the print queue and holds them there until the printer is enabled again Disabling a printer disables the printing process but not the spooling process.

Which of the following is true for the command: sudo dd if=/Information/Contacts of=~/cdrom.img bs=1M a. This command backs up the disk containing the two files - Contacts and cdrom b. This command sets the block size for the disk containing the two files c. This command creates a backup of the Contacts file onto the cdrom d. This command restores the Contacts file from the cdrom

c. This command creates a backup of the Contacts file onto the cdrom The sudo dd if=/Information/Contacts of=~/cdrom.img bs=1M command creates a backup of the Contacts file onto the cdrom.

What is the name of the file that contains a listing of all users on the system and their home directories? a. /etc/passwd b. /etc/users c. /etc/shadow d. /etc/password

a. /etc/passwd The /etc/passwd file stores all public user information, including user home directory locations.

What command can you use to view journald log entries on a system that uses Systemd? a. less b. journalctl c. syslog d. catlog

b. journalctl The journalctl command displays the events stored within the Systemd-journald database.

Which command can be used to temporarily alter the primary group associated with a given user? a. usermod b. chggrp c. gpasswd d. newgrp

d. newgrp The newgrp command can be used to modify a user's primary group for the duration of the shell.

Which command can be used to send a print job to the default printer named Printer1? (Choose all that apply.) a. lp -d Printer1 file b. lp Printer1 file c. lp file d. lp -m Printer1 fileterm-14

a. lp -d Printer1 file / c. lp file The -d option of the lp command followed by the printer name can be used to send a file to a printer. If the printer is the default system printer, the -d option is not required.

When a printer is rejecting requests, _____. a. the print queue does not accept jobs and sends a message to the user noting that the printer is unavailable b. the print queue accepts jobs into the print queue and holds them there until the printer is accepting requests again c. the printer appears as offline when an lp request is sent d. the print queue redirects all print jobs sent to it to /dev/null

a. the print queue does not accept jobs and sends a message to the user noting that the printer is unavailable Printers that are configured to reject requests will display an error to users that submit print jobs.

Which command would you use to unlock a user account? a. unlock username b. open username c. passwd -u username d. useradd -U username

c. passwd -u username The -u option to the passwd command can be used to unlock a user account that was locked using the -l option to the passwd command.

Which command is used to delete a user account? a. usermod -d username b. del username c. userdel username d. rm username

c. userdel username You can use the userdel command to remove a user account from the system.

You can clear a log file simply by redirecting nothing into it. a. True b. False

a. True You can use the >logfile command to clear a log file.

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? a. cancel Printer1-17 Printer1-21 b. cancel -u Printer1-17 Printer1-21 c. cancel -a Printer1-17 Printer1-21 d. cancel 17 21

a. cancel Printer1-17 Printer1-21 You can specify print job IDs as arguments to the cancel command to remove them.

What is the term used to describe a user providing a user name and password to log in to a system? a. validation b. authorization c. login d. authentication

d. authentication Authentication refers to the validation of a user identity.

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. a. section, priority b. service, precedents c. process, degree d. facility, priority

d. facility, priority The rsyslogd daemon logs events of a specific priority from a system facility.

The process of sending print jobs from the print queue to the printer is called _____. a. spooling b. queuing c. redirecting d. printing

d. printing Spooling refers to sending a print job to a print spool, whereas printing refers to sending a print job from a print spool to a physical printer.


Related study sets

Manuel transmissions chapter 122

View Set

Fundamentals Chap 26- Skin integrity and wound healing

View Set

A&P Chapter 5 Smartbook questions

View Set

chapter 46- oral and esophageal disorder

View Set

Unit 2: High-risk Intrapartum 4/5

View Set