CompTIA Linux+ Chapter 10 - Administring Users and Groups - Review Questions

¡Supera tus tareas y exámenes ahora con Quizwiz!

User environment file usually come fromwhere A. /etc/skel B. /home/userid C. $HOME D. - E. /etc/

A. /etc/skel

Which of the following are fields within a /etc/shadow file record (Choose all that apply) A. Password expiration B. Account expiration Date C. Password D. Comment E. Default Shell

A. Password expiration B. Account expiration Date C. Password

Which of the following are field within a /etc/password file record (Choose all that apply) A. User account's account name B. Password C. Password change date D. Special flag E. UID

A. User account's account name B. Password E. UID

Which o f the following will allow you to change an account's /etc/shadow/ file record data (Choose all that apply) A. the passwd command B. The usermod command C. The userdel command D. The getent command E. The chage command

A. the passwd command B. The usermod command C. The userdel command E. The chage command

Which of the following are options in the fstab file to designate as one uses quotas (Choose all that apply) A. usrquota B. quotaon C. grpquota D. quotacheck E. aquota.user

A. usrquota B. quotaon E. aquota.user

What of the following files and directories may be involved in setting up environment for all system user (Choose all that apply) A. /etc/bash_profile/ B. /etc/profile C. /etc/profile.d/ D. /etc/bashrc/ E. /etc/bash.bashrc

B. /etc/profile C. /etc/profile.d/ D. /etc/bashrc/ E. /etc/bash.bashrc

The last command, by default, pulls its data from what file A. The /var/run/utmp file B. The /var/log/wtmp file C. the /var/log/wtmp.1 file D. The /etc/shadow file E. THe /etc/passwd file

B. The /var/log/wtmp file

ou have Which of the following command will allow you to switch temporarily from your account's default group to another group with whom ymembership A. The usermod command B. The newgrp command C. the groups command D. The groupadd command E. the groupmod commanh

B. The newgrp command

Which of the following command will allow you to view the Nuhura account's record data passwd file (Choose all that apply) A. getent Nhura passwd B. cat /etc/passwd C. passwd Nhura D. grep Nhura /ect/passwd E. getent passwd Nuhura

B. cat /etc/passwd D. grep Nhura /ect/passwd E. getent passwd Nuhura

Which of the following could be used to view the members of the NCC-1701 group (Choose all that apply) A. groups NCC-1701 B. getent group NCC-1701 C. getent groups NCC-1701 D. grep NCC-1701 /etc/group E. grep NCC-1701 /etc/groups

B. getent group NCC-1701 D. grep NCC-1701 /etc/group

A problem has occurred concerning group quotas on three filesystems. You need to quickly remove all filesystems quota limits to temporarily resolve the issueWhat is the best command to employ A. vi /etc/fstab B. quotaoff -a C. quotacheck -cg D. quotacheck -cu D. aquota.user

B. quotaoff -a

You create an account using the appropriate utility, except for some reason the account's home directory was not created. Which of the following most likely cause this to occur A. The HOME directive is set to no B. You did not employ super user privilege C. The CREATE_HOME directive is not set D. The INACTIVE directive is set to -1 E. The EXPIRE date is set to -1

C. The CREATE_HOME directive is not set

You need to edit quota periods. Which of the following command should you use? A. edquota -u B. edquota -g C. edquota -t D. edquota -G E. edquota --grace

C. edquota -t

Which of the following commands is teh best one to add JKirk as a member to a new group called the NCC-1701 group and NOT remove any of the accounts previous group membership A. usermod -g NCC-1701 JKIRK B. usermod -G NCC-1701 JKIRK C. usermod -aG NCC-1701 JKIRK D. groupadd NCC-1701 E. groupmod NCC-1701 JKIRK

C. usermod -aG NCC-1701 JKIRK

Which of the following commands will display CPU load data along with information concerning users who are currently logged into the system A. The who command B. The id command C. the whoami command D. The w command E. The last command

D. The w command

Your boss has asked you to remove KSingh's account and all his home directory files from the system immediately. Which command should you use A. usermod -r KSingh B rm -r /home/KSingh C. userdel KSingh D. userdel -r KSIngh E. usermod -d KSingh

D. userdel -r KSIngh

You use the useradd -D command to view account creation configuration directives. What file does this command pull its displayed information from A. The /etc/passwd file B. The /etc/shadow file C. The /etc/group file D. The /etc/login.defs file E. The /etc/default/useradd file

E. The /etc/default/useradd file

Which field contains the same data for both a /etc/passwd and /etc/shadow file record A. Password B. Account expiration date C. UID D. GID E. User account's username

E. User account's username

Which of the following commands displays information about the account issuing the command (Choose all that apply) A. whoami B. who am i C. cat $HOME / .bashrc D. car $HOME / .profile E. id

E. id

A user has logged into the tty3 terminal. Which of the following user environment file is executed first if found in the user home directory A. the .bash_login file B. the .bashrc file C. the .profile file D. the .bash.bashrc file E. the .bash_profile file

E. the .bash_profile file


Conjuntos de estudio relacionados

Assessing Breast and Lymphatics: Thorax and Lungs

View Set

EMT flashcards Chapter 6: The Human Body

View Set

unit 4 ap gov - comp checks + supreme court cases

View Set

Chapter 2: Fundamentals of Ethernet LANs

View Set

MLT ASCP UA, Immunology, Body Fluids, and Lab Operation

View Set

Algorithms and Data Structures Final(14, 15, and 2)

View Set

chapter 12: databases and database management systems

View Set