Hoofdstuk 14 meerkeuze Flashcards

1
Q

UIDs 1-500 are usually reserved for what kind of users?

System accounts, such as server processes
Are not used for user accounts, but for group accounts
Log-in (human) users
Remote log-in accounts
A

System accounts, such as server processes

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

If a user is deleted, the files and directories that the user owned…

…will show a UID as the owner, but not user name.
…will have no UID owner.
…are deleted as well.
…will have no user owner.
A

…will show a UID as the owner, but not user name.

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

Which of the following options for the useradd command allows root to specify the UID to be associated with the account?

- U
- u
- G
- g
A

-u

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

Which of the following options for the useradd command allows root to specify supplementary groups the user will be a member of?

-G
-u
U
-g
A

-G

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

On a system that does not use UPG, the useradd command will also create a user group. For example, user bob, group bob.
True or False?

True
False
A

False

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

The useradd command will create a home directory by default for a user.
True or False?

True
False
A

True

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

The usermod command can be used to do all of the following except…

…add a user to a supplementary group.
…change the user’s MAX and MIN password settings.
…change the user’s home directory.
…change the user’s UID and GID.
A

…change the user’s MAX and MIN password settings.

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

Which of the following commands will add the group extra to the user bob’s secondary groups in addition to bob’s current secondary groups?

usermod -G extra bob
usermod -a extra bob
usermod -aG extra bob
usermod -ag bob extra
A

usermod -aG extra bob

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

Which option for the usermod command can be used to specify a user’s group ID (either primary or secondary)?
(choose two)

- g
- G
- s
- S
A
  • g

- G

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

For non-root users, the passwd command can only be used to change the password of the user running the command.
True or False?

True
False
A

True

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

The userdel command will…

…delete the user account, but leave the user’s files by default.
…will prompt before deleting each file owned by a user.
…automatically delete a user and the user’s home directory and its contents.
…automatically delete a user and all the files owned by that user.
A

…delete the user account, but leave the user’s files by default.

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

The groupmod command can be used to change 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
13
Q

The groupmod command can be used to change a group GID.
True or False?

True
False
A

True

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

The groupmod command can be used to add users to a group.
True or False?

True
False
A

False

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

Which of the following commands can be used to modify a group?

groupadd
modgroup
addgroup
groupmod
A

groupmod

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

Which command can be used to determine a user’s most recent log in?

last
history
shell
login
A

last

17
Q

Which of the following files contains encrypted user password information?

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

/etc/shadow

18
Q

Which of the following files contains user IDs?

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

/etc/passwd

19
Q

Which of the following files does the groupadd command use to determine the new GID when a GID isn’t specified?

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

/etc/group

20
Q

Which of the following commands, run as root, will prevent the user bob from logging in?

usermod -d bob
usermod -l bob
usermod -D bob
usermod -L bob
A

usermod -L bob

21
Q

What directory contains user’s home directories?

/
/home
/rootfs
/user
A

/home