The GID range used when a new group is added is determined by which file?

Study for the RHEL Linux - Red Hat System Administration Exam. Enhance your knowledge with flashcards and multiple-choice questions, complete with hints and explanations. Prepare for your certification!

The file that determines the GID (Group ID) range when a new group is added is /etc/login.defs. This file is a configuration file for the system's user and group management functions. It contains default values that apply when new users and groups are created.

Specifically, the GID range can be influenced by parameters set within this file, such as GID_MIN and GID_MAX. These parameters define the minimum and maximum allowed GID values for newly created groups, which ensures that they fall within a manageable and organized range. This is vital for system administration, as it helps maintain structure and organization for users and groups on the system.

The other files mentioned serve different purposes:

  • /etc/passwd stores user account information and does not contain guidelines for GID assignments.
  • /etc/group lists the existing groups and their associated GIDs but does not define how new GIDs are generated.
  • /etc/sudoers is used for configuring user privileges and permissions for the sudo command and is unrelated to GID assignment.

In summary, when a new group is created, the GID is assigned based on the parameters defined in /etc/login.defs, which acts as a policy

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy