Linux+ and LPIC-1 Chapter 10

Ace your homework & exams now with Quizwiz!

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

/var/log pg 512

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

False pg 524

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

False pg 524

Find the match for the fields in /etc/passwd. # getent user1 passwd user1:x:1000:1000:Adam Smith:/home/user1:/bin/bash Field 1 Field 2 Field 6 Field 7 OPTIONS password shell home directory userid

Field 1 - userid Field 2 - password Field 6 - home directory Field 7 - shell

Which one is NOT a step in setting up a user account on a Linux system? Create an account with the user's home directory Set the initial password Associate the user to groups Mount a USB drive for the user

Mount a USB drive for the user

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

True pg 521

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

True pg 535

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

authentication pg 524

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

passwd -u username pg 535

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

printing pg 502

What command do you use to delete a user account along with his/her home directory? userdel -h <userid> userdel -m <userid> userdel -r <userid> userdel -G <userid>

userdel -r <userid>

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

userdel username pg 535

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

usermod -L username pg 535

Only the administrator can display the content of /etc/passwd True False

False

Which describe journald? (Select two) Text log One log file for almost all system services Uses journalctl to view/extract log entries Older logging daemon

One log file for almost all system services Uses journalctl to view/extract log entries

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

facility, priority pg 515

What command do you use to display all the groups a user belongs to? (Select two) grep <userid> /etc/group grep <userid> /etc/passwd id <userid> getent group | grep <userid>

grep <userid> /etc/group id <userid>

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

journalctl pg 518

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

logrotate pg 521

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 file

lp file pg 504

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

newgrp pg 537

Which commands could you use to (effectively) lock a user account? (Select three) passwd -l <userid> systemctl lock-user <userid> usermod -L <userid> usermod -s /sbin/nologin <userid>

passwd -l <userid> usermod -L <userid> usermod -s /sbin/nologin <userid>

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

the print queue accepts jobs into the print queue and holds them there until the printer is enabled again pg 503

Why does everyone have 'x' in the password field of /etc/passwd file? It is a sign that /etc/passwd file has been corrupted 'x' indicates there is an error in the account settings 'x' means the actual password is saved in /etc/shadow 'x' signifies that the account is locked

'x' means the actual password is saved in /etc/shadow

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

/etc/login.defs pg 529-530

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

/etc/passwd pg 524

Find the match Print Process (Figure 10-1) (1), (2), (3), (4), (5), (6), (7), (8), (9) Disable Accept Printing Reject Spooling Enable Ip cupsd /var/spool/cups

1. cupsd 2. lp 3. Accept 4. Reject 5. /var/spool/cups 6. Enable 7. Disable 8. Spooling 9. Printing

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

cancel Printer1-17 Printer1-21 pg 506

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

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

What command do you use to add a user with the default home directory? useradd -h <userid> useradd -m <userid> useradd -r <userid> useradd -G <userid>

useradd -m <userid>


Related study sets

History Alive! Ch. 19 The North and The South

View Set

Ap biology AP classroom chapter 1-10

View Set

Chapter 3: The Science of Astronomy

View Set

PRM 380: Wilderness & Parks in America Final Exam Study Guide

View Set