A system administrator needs to create a new group named app_users. For consistency across multiple servers, the administrator must assign the specific Group ID (GID) of 1500. After inspecting the /etc/group file, the administrator discovers that a group named qa_team already exists with the GID 1500.
Which of the following describes the outcome of running the command groupadd -g 1500 app_users?
The app_users group will be created, but the system will automatically assign the next available GID greater than 1500.
The app_users group will be created, and the GID of the existing qa_team group will be changed to the next available GID.
The app_users group will be created with the GID 1500, allowing both groups to share the same GID.
The command will fail, and an error message will be displayed indicating the GID is already in use.
The correct answer is that the groupadd command will fail with an error. By default, Group IDs (GIDs) must be unique. The -g option attempts to set the specified GID, but if that GID already exists, the command will exit with an error indicating that the GID is not unique. To force the creation of a group with a non-unique GID, the -o (--non-unique) option would need to be used in conjunction with the -g option. The command will not automatically assign the next available GID or modify the existing group.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why must GIDs be unique in Linux?
Open an interactive chat with Bash
What happens if I force the creation of a group with a non-unique GID?
Open an interactive chat with Bash
How can I check for available GIDs before creating a new group?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access