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, and the GID of the existing qa_team group will be changed to the next available GID.
The command will fail, and an error message will be displayed indicating the GID is already in use.
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 with the GID 1500, allowing both groups to share the same GID.
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...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .