A system administrator needs to remove a group named proj_alpha from a Linux server. When the administrator executes sudo groupdel proj_alpha, the command fails with an error message. Which of the following is the most likely reason for this failure?
Files on the system are still owned by the proj_alpha group.
A user account has proj_alpha configured as its primary group.
The administrator did not use the -f flag to force the deletion of a non-empty group.
A user account has proj_alpha configured as a supplementary group.
The correct answer is that a user account has proj_alpha set as its primary group. The groupdel command is designed to prevent the removal of a group if it is the primary group for any existing user. This safeguard maintains system integrity, as every user must have a primary group. Running the command without sudo would result in a permissions error, not necessarily an error specific to group deletion logic. The groupdel command does not check for file ownership or supplementary group membership before deleting a 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 can't the `groupdel` command remove a group that is a user's primary group?
Open an interactive chat with Bash
How can a system administrator identify if a group is a user's primary group?
Open an interactive chat with Bash
Does the `groupdel` command check for files owned by a group before deletion?
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 .