A system administrator has been instructed to update the unique numeric identifier assigned to the 'developers' group to meet the new organizational policy requiring all development teams to have identifiers above 4999. Which of the following commands will BEST accomplish this?
usermod -g 5000 developers
groupmod -n developers 5000
groupmod -g 5000 developers
Manually change the numeric identifier in the /etc/group file next to 'developers'
The correct command is groupmod -g 5000 developers because it directly and succinctly satisfies the task of updating the unique numeric identifier for the group. The -g option specifies the new identifier to be assigned to the group. The incorrect commands either target user account management (usermod), incorrectly use options that are not associated with updating the numeric identifier (-n), or suggest a method that is not recommended due to potential risks (edit the /etc/group file).
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 is the purpose of the 'groupmod' command in Linux?
Open an interactive chat with Bash
What does the '-g' option do in the 'groupmod' command?
Open an interactive chat with Bash
Why is editing the /etc/group file directly not recommended?