Linux Essentials - Chapter 13

Ace your homework & exams now with Quizwiz!

True/False | The /etc/shadow file contains plain-text passwords.

false

True/False | Each user belongs to at least one group.

true

The visudo command uses which text editor by default? a• vi b• nano c• pico d• gedit

a

Which command can be used to view the /etc/passwd file entries? a• getent b• uppasswd c• uptime d• getpasswd

a

Which command will display the UID, GID and groups your current user belongs to? a• id b• who c• whoami d• about

a

Which user can view the /etc/shadow file? a• The root user b• Any member of the password group c• All users d• No users

a

Which files contain user account information? (choose two) a• /etc/passwd b• /etc/shadow c• /etc/group

a, b

The sudo command allows regular users to... a• ...run any command as root, after providing the sudo password. b• ...run certain commands as the root user. c• ...run any command as root, after providing the root password. d• ...run any commands as a system account without logging in.

b

Which of the following commands will display the group(s) a user belongs to? a• group b• id c• all d• whoami

b

Which of the following commands will display the groups that the user bob belongs to? (choose one) a• groups -a b• id bob c• group bob d• all bob

b

Which of the following commands will allow you to switch to the user, branch? (choose three) a• sudo branch b• su - branch c• su -l branch d• su branch

b, c, d

Which of the following commands will display how long the system has been running since the last boot? (choose two) a• id b• w c• who d• uptime

b, d

A user can belong to... a• Only five groups b• Only one group c• At least 16 groups d• Only groups with a GID over 500

c

Which command will display the users that are currently logged in to the system? a• whoami b• about c• who d• id

c

The /etc/group file follows what structure? a• groups -a b• user:group c• group:GID:user_list d• group_name:password_placeholder:GID:user_list

d

True/False | A GID is associated with a group name.

true

True/False | In distributions that do not allow the root user to login directly or via the su command, the installation process automatically configures one user account to be able to use the sudo command to execute commands as if they were executed by the root user.

true

True/False | Sudo privileges can be used to specify which user can use the sudo command to execute commands as other users.

true

True/False | The /etc/sudoers file should be edited directly by root using the visudo command.

true


Related study sets

Therapeutic Nutrition Exam 1 Review

View Set

Improving Vocabulary with Word Parts and Context Clues Instruction

View Set

Chapter 1 Xcel Health and Life Insurance

View Set

PSYCH - Chapter 10: Understanding and Managing Responses to Stress

View Set