Hoofdstuk 13 meerkeuze Flashcards

1
Q

Which files contain user account information?
(choose two)

/etc/passwd
/etc/shadow
/etc/group
A

/etc/passwd

/etc/shadow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which user can view the /etc/shadow file?

The root user
Any member of the password group
All users
No users
A

The root user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

id
who
whoami
about
A

id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

True
False
A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

whoami
about
who
id
A

who

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The sudo command allows regular users to…

…run any command as root, after providing the sudo password.
…run certain commands as the root user.
…run any command as root, after providing the root password.
…run any commands as a system account without logging in.
A

…run certain commands as the root user.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

True
False
A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

sudo branch
su – branch
su -l branch
su branch
A

su – branch
su -l branch
su branch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The visudo command uses which text editor by default?

vi
nano
pico
gedit
A

vi

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

group
id
all
whoami
A

id

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

groups -a
id bob
group bob
all bob
A

id bob

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The /etc/group file follows what structure?

groups -a
user:group
group:GID:user_list
group_name:password_placeholder:GID:user_list
A

group_name:password_placeholder:GID:user_list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

True
False
A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

A user can belong to…

Only five groups
Only one group
At least 16 groups
Only groups with a GID over 500
A

At least 16 groups

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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
A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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
A

True

17
Q

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

id
w
who
uptime
A

w

uptime

18
Q

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

True
False
A

False

19
Q

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

getent
uppasswd
uptime
getpasswd
A

getent