In Ubuntu 10.04, I'm attempting an complex (unfamiliar) command at the direction of an instructional aid (for Rails deployment):
sudo useradd --comment "Puppet" --no-create-home --system --shell /bin/false puppet
This command is failing, however:
useradd: group puppet exists - if you want to add this user to that group, use -g.
I do not understand the intent behind the complex command. My question is how can I (understand and) honor the intent of the original command while adding the desired user and group ("puppet") using the -g