useradd -G zmanusers non-rootusername does not assign user to zmanusers group

  • 7005025
  • 14-Dec-2009
  • 27-Apr-2012

Environment


Novell ZENworks 10 Configuration Management with Support Pack 2 - 10.2 Documentation

Situation

useradd -G zmanusers non-rootusername does not assign user to zmanusers group

ERROR: useradd: Account 'non-rootusername' already exists.

Resolution

Workaround:

If the user already exists in Linux Local User database run the following command:

groupmod -A <username> zmanusers

If the user does not exist on the Linux box use:

useradd -G zmanusers non-rootusername