User and Group Management | "Do I Know This Already?" Quiz

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

d. In the sudo configuration file, all members of the group wheel by default get access to all administrator tasks.

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

b. The runas command does not exist on Linux.

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

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.

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

c and d. The id and groups commands show a list of all groups a user is a member of.

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

a. The chage -l command enables you to manage password properties.

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

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

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

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

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. The hashed user passwords are stored in /etc/shadow.

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

c. Privileged users are the opposite of unprivileged users. A privileged user can execute tasks in kernel space, without further restriction. By default, only the user root exists as a privileged user.

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.

a. The vigr command creates a copy of the /etc/group file so that changes can be applied safely.

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


Kaugnay na mga set ng pag-aaral

Chapter 16- Writing and Requirement and Electronic Records

View Set

HAP II: Urinary Tract - Extra Credit

View Set

Chapter 2 - Introduction to Visual C#

View Set

Chapter 2 Psychology- Important People

View Set

Ch. 5 The Civilization of Ancient Rome

View Set