Chapter 4 Flashcards

1
Q

How many fields are on each line of /etc/group?

A

4

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

Which option to groupmod changes the name of a group?

A

-n

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

Which option to groupmod changes the groupid of a group?

A

-g

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

After you change a group’s groupid, what else should you do?

A

fix the groupid on any files that were in their group with chgrp

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

Bob is in three groups, chess, scrabble, and bridge. Which command would add him to the baseball group as well?

A

usermod -a -G baseball bob

usermod -G chess,scrabble,bridge,baseball bob

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

Ventura is in three groups, drama, poetry, and fencing. Which command would remove him from fencing?

A

usermod -G drama,poetry ventura

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

Which command changes the owner group of the file /etc/fstab to group wheel?

A

chgrp wheel /etc/fstab

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

A line in /etc/group reads chinatown:x:415:kearny,powell,stockton. Which statement is true?

A

user powell is a member of group chinatown

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