Delete the existing temporary group from the group database.
No user's primary group is temporary.
Which command is appropriate?
groupdel GROUP removes the group; verify that it is not a user's primary group first.
Detailed explanation
userdel temporaryIncorrect. userdel targets a user account.
Incorrect. userdel targets a user account.
groupmod -d temporaryIncorrect. groupmod has no -d deletion form for this purpose.
Incorrect. groupmod has no -d deletion form for this purpose.
groupdel temporaryCorrect. groupdel temporary removes the group.
Correct. groupdel temporary removes the group.
passwd -d temporaryIncorrect. passwd -d deletes a user's password.
Incorrect. passwd -d deletes a user's password.
Try it yourself
An example you can run in a temporary verification environment.
groupdel --help 2>&1 | head -n 8Expected result
groupdelのusageとグループ削除の説明Key points
- groupdel removes group
- Primary groups must be changed first
- Check file GIDs separately
Notes
- Environment: shadow-utils groupdel / help読取のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.