Linux Groups and the /etc/group File Flashcards

1
Q

A group is just an …?

A

integer group id (gid).

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

Every process that runs on the system runs under a…?

A

collection of groups (gids)

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

The /etc/group file maps gids to…?

A

group names and group memberships.

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

Every file in the filesystem is owned by…?

A

a single gid.

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

Users have a single primary group defined in…?

A

the /etc/passwd file

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

Users may be members of multiple …?

A

secondary groups, defined in the /etc/groups file.

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

Group memberships allow system administrators to…?

A

efficiently manage collections of users with similar objectives.

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

Every user is a member of…?

A

one primary group.

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

Users can be a member of zero or more…?

A

secondary groups.

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

To the Linux kernel, a group is referenced using a…?

A

32 bit integer group id (GID).

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

The /etc/group file associates group names with..?

A

GIDs (for humans), and defines which users belong to which groups.

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

The /etc/group file plays a similar role for groups as the…?

A

/etc/passwd file plays for users, has a similar structure, and more reasonable name. It is a line based configuration file, with each consisting of colon separated fields.

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

/etc/group file fields:

Field 1…?

A

Group names, the group name is used to give a human readable name to the group.

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

/etc/group file fields:

Field 2…?

A

Group Password, Groups can be supplied with a group password, though this is rarely done.

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

/etc/group file fields:

Field 3…?

A

Group ID (GID), The integer group id.

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

/etc/group file fields:

Field 4…?

A

Group members, A comma separated list of usernames defining the group members.

17
Q

Group memberships are most often used to determine who has…?

A

access to what in the filesystem.

18
Q

Every file on the system is owned by…?

A

is owned by a user and also owned by a group, which is referred to as the “group owner” of the file.

19
Q

Because every file must have a group owner, there must be a …?

A

default group associated with each user. This default group becomes the group owner of newly created files. This group is known as a user’s primary group.

20
Q

A user’s primary group is defined in the…?

A

fourth field of a user’s /etc/passwd entry.

21
Q

In addition to a primary group, users may optionally belong to…?

A

other groups as well. These groups are termed secondary groups, and are defined (coincidentally) in the fourth field of the /etc/group file.

22
Q

A user’s secondary groups are defined by…?

A

adding the username to the fourth field of the appropriate lines in the /etc/group file.

23
Q

Standard users do not have….?

A

permission to edit the /etc/passwd file or the /etc/group file, and therefore cannot change their group memberships. Instead, only the administrative user, root, may change group memberships.

24
Q

If you access to a machine as root, group memberships may be modified using the…?

A

usermod and groupmod command line utilities, or the system-config-users graphical utility.