RHEL Linux - Red Hat System Administration Practice Exam

Disable ads (and more) with a membership for a one time $4.99 payment

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!

Practice this question and more.


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

  1. /etc/passwd

  2. /etc/group

  3. /etc/login.defs

  4. /etc/sudoers

The correct answer is: /etc/login.defs

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