Chapter 6: User and Group Management - QUIZ

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Which two files can be used to define settings that will be used when creating users?

/etc/default/useradd and /etc/login.defs can be used to define settings that will be used when creating users.

What is the name of the file where group accounts are stored?

/etc/group stores group accounts.

What is the name of the file where user passwords are stored?

/etc/shadow stores user passwords.

What is the UID of user root?

0 is the UID of user root.

If you want to grant a user access to all admin commands through sudo, which group should you make that user a member of?

Making a user a member of the wheel group grants the user access to all admin commands through sudo.

How many groups can you create in /etc/passwd?

None, because groups are created in /etc/group.

Which command should you use to modify the /etc/group file manually?

Use vigr to modify the /etc/group file manually.

Which command should you use to modify a sudo configuration?

Use visudo to modify a sudo configuration.

6. Which command enables you to get information about password properties such as password expiry? a. chage -l b. usermod --show c. passwd -l d. chage -show

a. chage -l

8. Which utility can be used to edit group membership directly through the appropriate configuration file? a. vigr b. vipw c. vipasswd d. usermod

a. vigr

7. Which of the following files is not processed when a user starts a login shell? a. /etc/profile b. /etc/.profile c. ~/.bashrc d. ~/.bash_profile

b. /etc/.profile B. There is no file /etc/.profile.

4. Which of the following is used to store the hash of the user's encrypted password? a. /etc/passwd b. /etc/shadow c. /etc/users d. /etc/secure

b. /etc/shadow

3. There are different ways that users can run tasks with root permissions. Which of the following is not one of them? a. sudo b. runas c. su d. PolicyKit

b. runas

5. Which configuration file should you change to set the default location for all new user home directories? a. /etc/login.defaults b. /etc/login.defs c. /etc/default/useradd d. /etc/default/login.defs

c. /etc/default/useradd C. The file /etc/default/useradd is read for default settings when new user accounts are created.

1. Which statement about privileged users (root) is true? a. A privileged user is a user who has access to a Linux system. b. A privileged user with no access permissions can do nothing at all. c. Privileged users are not restricted in any way. d. On every server, at least one privileged user must be manually created while installing the server.

c. Privileged users are not restricted in any way.

9. Which command can be used to list all groups a user is member of? a. userlist b. grouplist c. id d. groups

c. id d. groups

10. What can you do to ensure that no users, except for the user root, can log in temporarily? a. Set the default shell to /usr/sbin/nologin b. Set the default shell to /bin/false c. Create a file with the name /etc/nologin d. Create a file with the name /etc/nologin.txt

d. Create a file with the name /etc/nologin.txt D. When a file with the name /etc/nologin.txt is created, only the root user is allowed to log in, and nobody else. In this file you can specify a message that will be shown to users who are trying to log in.

2. On a default installation of an RHEL 8 server, which group does the user typically need to be a member of to be able to use sudo to run all administration commands? a. admin b. root c. sys d. wheel

d. wheel

Which two commands can you use to change user password information?

passwd and chage can be used to change user password information.

What is the configuration file in which sudo is defined?

sudo is defined in /etc/sudoers.


Ensembles d'études connexes

drivers ed (the ones i got wrong)

View Set

Wk 3- Signs of Approaching Death

View Set

KIN 1304- Chapter 3: Mental Health and Stress

View Set

SQL - CH 2: Basic SQL SELECT Statements

View Set

Microbiology Ch 13 Reading Assignment

View Set

Social psychology - Prosocial behavior and altruism Ch 11

View Set

LSU CSC 4330 Software Engineering Final

View Set