A system administrator has been instructed to update the unique numeric identifier assigned to the "developers" group to comply with a new organizational policy that requires all development teams to use identifiers above 4999. Which command will BEST accomplish this task?
Manually edit the numeric identifier for "developers" in /etc/group
The command groupmod -g 5000 developers modifies the group ID (GID) of the existing group "developers" to 5000. The -g option of groupmod explicitly sets a new GID. usermod is intended for user accounts, not groups. groupmod -n developers 5000 misuses the -n option, which is for renaming groups, and would attempt to rename an existing group named "5000". Manually editing /etc/group can introduce errors and is not recommended when a dedicated command exists.
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.
What does the `groupmod -g` command do?
Open an interactive chat with Bash
Why is editing the /etc/group file manually not recommended?
Open an interactive chat with Bash
What is the difference between `groupmod` and `usermod` commands?