Services and User Management
An administrator runs groupdel developers and receives the error "cannot remove the primary group of user 'amy'". The group is no longer needed, and amy should keep her account. Which action allows the group to be deleted?
Show the answer
Correct answerD. Run usermod -g staff amy, then rerun groupdel developers
A group cannot be deleted while it is any user's primary group, so amy's primary group must be changed with usermod -g first. gpasswd -d only removes supplementary membership and does not change a primary group.