chapter 11

March 23, 2018 | Author: Juan Carlos Canales | Category: Superuser, User (Computing), Computer Data, Utility Software, Computer Architecture


Comments



Description

Guide to Linux+ (2nd Edition) ISBN 0-619-21621-2 End of Chapter Solutions Chapter 11 Solutions Review Questions 1. The process of sending print jobs from the print queue to the printer is called? a. spooling b. queuing c. redirecting d. printing Answer: d 2. You can clear a log file simply by redirecting nothing in to it. True or False? Answer: True 3. 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 does accept jobs into the print queue and holds them there until the printer is enabled again c. the printer appears as off-line when a lp request is sent d. the print queue redirects all print jobs sent to it to /dev/null Answer: b 4. What is the name 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 Answer: b 5. Which command can you use to lock a user account? a. lock username b. secure username c. usermod –L username d. useradd –L username Answer: c 6. Which command can be used to alter the primary group associated with a given user temporarily? a. usermod b. chggrp c. gpasswd d. newgrp Answer: d 7. 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 Answer: a, c 8. What is the name of the file that contains a listing of all users on the system and their home directories? a. /etc/passwd 1 a. When a printer is rejecting requests. When referring to the /etc/syslog. lp b. the print queue redirects all print jobs sent to it to /dev/null Answer: a 13. /etc/logfiles b. service. priority Answer: d 14. Which command would you use to unlock a user account? a. /etc/passwd c. degree d. UIDs and GIDs are unique to the system and once used can never be reused. /etc/users c. whereas ________ is the level of importance of that information. /etc/login. priority b. process. syslog b.conf file. /etc/default/useradd Answer: c 16. jetpack c. the printer appears as off-line when a lp request is sent d. True or False? Answer: False 10.b. True or False? Answer: True 12. useradd –U username Answer: c 2 .defs d. section. lpstat Answer: b 17. precedents c. open username c. the print queue does not accept jobs and sends a message to the user noting that the printer is unavailable b. Which file contains default information such as UID and GID ranges and minimum password length to be used at user creation? a. __________ specifies information from a certain area of the system.____________. lpd d. the print queue does accept jobs into the print queue and holds them there until the printer is accepting requests again c. logbackup Answer: c 11. unlock username b. What is the background process responsible for printing on Red Hat Fedora Linux? a. a. Most log files on the system are found in which directory? a. logrotate d. What is the name of the utility used to rotate log files? a. /etc/skel b. /var/log d. usermod –U username d. /etc/log c. /dev/log Answer: c 15. cupsd c. /etc/shadow d. You can lock a user account by changing the default login shell to an invalid shell in /etc/passwd. facility. /etc/password Answer: a 9. Step 9: Yes. del username c. Step 3: /var/log/cron. Step 11: Not available. Step 12: Not available. Step 6: Not available. Step 5: Not available. syslog daemon. respectively. Which command is used to delete a user account? a. Step 4: Not available. Step 4: Not available. centralizes logging. Step 7: p1-2. 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. cancel –a Printer1-17 Printer1-21 d. Step 10: Not available. Step 2: Yes. Step 14: Not available. cancel –u Printer1-17 Printer1-21 c. Step 9: Not available. Step 15: Not available. cancel Printer1-17 Printer1-21 b. Step 8: Not available. Step 11: No. userdel username d. Project 11-3 Step 1: Not available. Which command would you use to remove these two jobs from the print queue? a. rm username Answer: c Project 11-1 Step 1: Not available. yes. Step 4: Not available. They have print job IDs of Printer1-17 and Printer1-21.18. Step 2: Not available. the /etc/passwd file also contains information on account expiry. Step 8: Not available. usermod –d username b. Step 10: Not available. Project 11-2 Step 1: Not available. Along with a listing of user accounts. Step 3: Not available. True or False? Answer: False 19. Step 5: p1-1. cancel 17 21 Answer: a 20. Step 2: Socket. Step 12: Not available. Step 7: Not available. Step 3: Not available. Step 13: Not available. Step 13: Yes. 3 . Step 6: Not available. /etc/skel. Step 6: File does not exist because all information is now stored in /etc/passwd. Step 7: Information about cron daemon startup is displayed on the last line. /etc/default/useradd. Step 6: Yes. Step 7: Encrypted password. everyone (mode=644). Step 10: /bin/bash. Step 8: Configures system to store password information in the /etc/shadow file. Step 16: Not available. the number of days since January 1. Step 8: They are identical. Step 5: Not available. 501. Step 10: 20. Step 18: Not available. Step 13: Not available. Step 15: No. Step 6: Not available. Step 11: 31. Step 12: Not available. Step 11: The 4th field. !! Step 5: root. Step 2: Top. Step 3: root. Project 11-4 Step 1: Not available. no. Step 14: /bin/bash.Step 5: Not available. bottom. Step 8: The 9th field. Step 2: Not available. Step 12: Not available (answers will vary). root. Step 12: Not available. Step 13: makes the home directory. yes. Step 9: Weekly. Project 11-5 Step 1: Not available. Step 3: Not available. only the root user (password security – mode=400). 4 . Step 5: No. /home/bozo. Step 7: The 7th field.. 37. Project 11-6 Step 1: Not available.M. 1970. Step 10: Not available. /home. Step 8: 4:02 A. Step 2: Not available. all files are copied to new user home directories to provide environment variables and files. 4. Step 9: Yes. Step 11: Hidden environment files and directories. Step 3: Not available. Step 9: Not available. root. Step 9: The 4th field. Step 4: Encrypted password. Step 4: a ! was placed at the beginning. Step 4: Only the login name changed. Step 7: Not available. Step 6: Not available. Step 17: All files in Step 11 are present plus the inittab file. Step 10: The 5th field. yes. Step 9: Not available. Step 6: Not available.conf file. Project 11-7 Step 1: Not available.!=notice /var/log/mailman e) *.=crit /var/log/alert b) user. Step 13: /etc/group. yes.*. Step 8: bozoette.Step 11: Not available.=crit /var/log/serious f) kern. Step 2: bozo. Step 7: bozoette. The command used to set the expiry for all new accounts is useradd –D –e "2015-03-05".*. Step 19: Not available. Step 11: Not available. Step 14: Not available. Step 4: bozoette. Discovery Exercise 3 Add the entry: *. Step 13: No. Step 7: /home/bozoette.=error /var/log/shared Discovery Exercise 2 The –D option modifies /etc/default/useradd to set default options for future account additions. Step 6: Not available. users typically manage their own files.=alert. Step 14: Not available. Step 18: Not available. Project 11-8 Step 1: Not available. kern. Step 5: Makes a home directory and assigns a UID.warn /var/log/sample.lpr. 5 . Step 12: Not available. Step 2: Not available. Step 5: bozoettee directory and assigns a UID. Step 3: No.* /var/log/userlog c) lpr.mail. Step 15: Not available.log" to the /etc/syslog.lpr. groupies. Step 16: Yes. 666. Discovery Exercises Discovery Exercise 1 a) kern.=warn. Step 10: bozoette. Step 4: 666. Step 12: /bin/false is not listed in /etc/shells. groupies because bozoette is the owner and groupies is the primary group. bozoette because bozoette is the owner and bozoette is the primary group. Step 17: Not available. Step 8: Not available.debug /var/log/printer d) mail. Step 3: Not available. Step 9: Not available. Add the entries: /var/log/sample.d directory.log { compress daily rotate 6 } to either the /etc/logrotate.conf file or a new file in the /etc/logrotate. usermod –G acctg tbanks 6 . Discovery Exercise 5 Not available. Discovery Exercise 4 Not available. Discovery Exercise 6 a) useradd –u 733 –c "accounting manager" –p Gxj234 bsmith b) userdel jdoe c) usermod –c "shipping" – e "2011-03-23" d) passwd –l wjenkins (answers will vary!) e) passwd bsmith (specify the correct password) f) usermod –l wjones –G managers tbanks g) useradd –u 0 –g root –o –r wjones h) useradd –p he789R jdoe i) usermod –g root wsmith j) usermod –G acctg joe .
Copyright © 2024 DOKUMEN.SITE Inc.