Linux Essentials Chapter 13 System and User Security

Ace your homework & exams now with Quizwiz!

The sudo command allows regular users to...

...run certain commands as the root user.

Which files contain user account information? (choose two)

/etc/passwd, /etc/shadow

A user can belong to...

At least 16 groups

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

False

Which user can view the /etc/shadow file?

The root user

A GID is associated with a group name. True or False?

True

Each user belongs to at least one group. True or False?

True

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 or False?

True

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

True

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

True

Which command can be used to view the /etc/passwd file entries?

getent

The /etc/group file follows what structure?

group_name:password_placeholder:GID:user_list

Which command will display the UID, GID and groups your current user belongs to?

id

Which of the following commands will display the group(s) a user belongs to?

id

Which of the following commands will display the groups that the user bob belongs to? (choose one)

id bob

Which of the following commands will allow you to switch to the user, branch? (choose three)

su - branch, su -l branch, su branch

The visudo command uses which text editor by default?

vi

Which of the following commands will display how long the system has been running since the last boot? (choose two)

w, uptime

Which command will display the users that are currently logged in to the system?

who


Related study sets

PSB 4006 - Chapter 8: Wakefulness and Sleep

View Set

Chapter 4 The Stargazer's Guide to the Night Sky

View Set

8. Disk and File System Management

View Set

Chapter 8 Racial and ethnic theories

View Set

English IV — Frankenstein Chapters 7-14

View Set

NCLEX LPN Physiological Adaptation 1

View Set

CITI training responsible conduct

View Set

RMI 3502 Topic 5 - Insurance Regulation

View Set

GOOGLE HACKING FOR PEN TESTERS, GOOGLE HACKING FOR PENETRATION TESTERS, 3RD EDITION; TOPIC GOOGLE HACKING

View Set