Linux Groups and the /etc/group File Flashcards Preview

Networking > Linux Groups and the /etc/group File > Flashcards

Flashcards in Linux Groups and the /etc/group File Deck (24):
1

A group is just an ...?

integer group id (gid).

2

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

collection of groups (gids)

3

The /etc/group file maps gids to...?

group names and group memberships.

4

Every file in the filesystem is owned by...?

a single gid.

5

Users have a single primary group defined in...?

the /etc/passwd file

6

Users may be members of multiple ...?

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

7

Group memberships allow system administrators to...?

efficiently manage collections of users with similar objectives.

8

Every user is a member of...?

one primary group.

9

Users can be a member of zero or more...?

secondary groups.

10

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

32 bit integer group id (GID).

11

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

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

12

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

/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.

13

/etc/group file fields:
Field 1...?

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

14

/etc/group file fields:
Field 2...?

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

15

/etc/group file fields:
Field 3...?

Group ID (GID), The integer group id.

16

/etc/group file fields:
Field 4...?

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

17

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

access to what in the filesystem.

18

Every file on the system is owned by...?

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

19

Because every file must have a group owner, there must be 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

A user's primary group is defined in the...?

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

21

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

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

22

A user's secondary groups are defined by...?

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

23

Standard users do not have....?

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

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

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