Linux chapter 10

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

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

/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 /etc/users /etc/shadow /etc/password

/etc/passwd

Most log files on the system are found in which directory? /etc/logfiles /etc/log /var/log /dev/log

/var/log

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

False

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

False

What are log files?

Most daemons record information and error messages to files stored on the filesystem.

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 is the term used to describe a user providing a user name and password to log in to a system? validation authorization login authentication

authentication

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 cancel -u Printer1-17 Printer1-21 cancel -a Printer1-17 Printer1-21 cancel 17 21

cancel Printer1-17 Printer1-21

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 service, precedents process, degree facility, priority

facility, priority

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

journalctl

What is the name of the utility used to rotate log files? syslog jetpack logrotate logbackup

logrotate

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 Printer1 file lp file lp -m Printer1 file

lp -d Printer1 file, lp file

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

newgrp

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

passwd -u username

The process of sending print jobs from the print queue to the printer is called _________. spooling queuing redirecting printing

printing

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

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 the print queue accepts jobs into the print queue and holds them there until the printer is accepting requests again the printer appears as offline when an lp request is sent the print queue redirects all print jobs sent to it to /dev/null

the print queue does not accept jobs and sends a message to the user noting that the printer is unavailable

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

userdel username

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

usermod -L username


Kaugnay na mga set ng pag-aaral

Different Signs / for physical assessment

View Set

Forgetting, Memory Construction, and Improving Memory

View Set