Chapter 10 - Common Administrative Tasks

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

A system that uses an /etc/passwd file only can be converted to use /etc/shadow for security by using what command? True or False

True

CUPS contains versions of the lpr, lpc, lpq, and lprm commands. True or false

True

Logs from the cron daemon (crond) can be viewed using the command journalctl _COMM=crond. True or False

True

You can clear a log file simply by redirecting nothing into 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

What System Log Daemon priority indicates an error that should be rectified immediately, such as a corrupt system database?

alert

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

What two commands can be used to modify the password expiry information and a user's default shell?

chsh chage

What priority used by the System Log Daemon indicates a very serious system condition that would normally be broadcast to all users?

emerg or panic

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

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

In order to send a print job to a printer using CUPS, what command must be used?

lp

Which command can be used to send a print job to the default printer named Printer1? (choose all that apply)

lp -d Printer1 file lp file

Which command should be used to restrict access to printers?

lpadmin

Adding the -t option to what command will provide a list of all printers on the system and their status?

lpstat

What option can be used in the journald configuration file to specify a file size limit to the event log?

maxuse

To change the primary group temporarily to another group that is listed in the output of the groups and idcommands, you can use which command?

newgrp

Which command can be used to alter the primary group associated with a given user temporarily?

newgrp

The process of sending print jobs from the print queue, to the printer is called________________________.

printing

The System Log Daemon rsyslogd loads what configuration file under /etc, as well as any files within which directory under /etc?

rsyslog.conf rsyslog.d

When a printer is disabled, _____________________.

the print queue accepts jobs into the print queue and then 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

In order to create user accounts on a Linux system, what command should be utilized?

useradd

Which command is used to delete a user account?

userdel username

Which command can you use to lock a user account?

usermod -L username

Which command would you use to unlock a user account?

usermod -U username

What option should be used in conjunction with the lp command in order to specify the destination printer name?

-d

What option can be used with the lpstat command to show all information about printers and their print jobs

-p

What option can be added to the userdel command to remove the home directory of the target user?

-r

What configuration file contains parameters that set the default location for e-mail, password expiration information, minimum password length, and the range of UIDs and GIDs available for use?

/etc/cups/printers.conf

Which file contains default information such as UID and GID ranges and minimum password length to be used at a user creation?

/etc/login.defs

What is the name fo the file that contains a listing of all users on the system and their home directories?

/etc/passwd

Where is the skeleton directory located on most Linux systems?

/etc/skel

Most log files on the system are found in which directory?

/var/log

On Linux, the root user always has a UI of what number?

0

The System Log Daemon uses what TCP and UDP port to accept incoming requests from another System Log Daemon on a remote system?

514

The CUPS Web administration tool can be accessed via web browser by accessing what TCP port?

631

What is the name used to describe a user providing a username and password to log into a system?

Authentication

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

False

On most Linux systems, the logrotate utility is automatically scheduled to run weekly. True or False

False

UIDs and GIDs are unique to the system and once used can never be reused. True or False?

False

What log file contains information and error messages from the Linux kernel?

Kern


Kaugnay na mga set ng pag-aaral

bychapter exam health and accident

View Set

CIST2351-PHP Programming I - Final Prep

View Set

PN NCLEX 6th Edition- Mental Health

View Set

ACUTE 2_Chapter 34: Care of Patients With Dysrrhythmias

View Set

SWE - chapter 3 :Agile software development

View Set