Chapter 15 Exam Flashcards
Which files contain user account information?
(choose two)
/etc/shadow
/etc/group
/etc/passwords
/etc/passwd
/etc/shadow
/etc/passwd
Which user can view the /etc/shadow file?
Any member of the password group
No users
The root user
All users
The root user
Which command will display the UID, GID and groups your current user belongs to?
whoami
Who
id
about
id
Each user belongs to at least one group.
True or False?
True
False
True
Which command will display the users that are currently logged in to the system?
about
who
id
whoami
who
The sudo command allows regular users to…
…execute commands as another user.
…execute any command as root, after providing the root password.
…run any command as root, after providing the sudo password.
…run any commands as a system account without logging in.
…execute commands as another user.
Which of the following commands will display the group(s) a user belongs to?
all
id
whoami
group
id
Which of the following commands will display the groups that the user bob belongs to?
group bob
id bob
groups -a
all bob
id bob
The /etc/group file follows what structure?
group:GID:user_list
groups -a
user:group
group_name:password_placehoder:GID:user_list
group_name:password_placehoder:GID:user_list
A GID is associated with a group name.
True or False?
True
False
True
A user can belong to…
At least 16 groups
Only five groups
Only groups with a GID over 500
Only one group
At least 16 groups
Sudo privileges can be used to specify which user can use the sudo command to execute commands as other users.
True or False?
True
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
False
True
Which of the following commands will display how long the system has been running since the last boot?
(choose two)
who
id
uptime
w
uptime
w
The /etc/shadow file contains plain-text passwords.
True or False?
True
False
False