I need to add an user called "admin". When I type:
# adduser admin
I get:
adduser: The group 'admin' already exists.
So, I guess, by default, adduser
is trying to create an "admin" group that already exist at the same time as creating the "admin" user. Reading adduser man page I've seen -N
option to avoid goup creation. I tried this:
adduser -N admin
With the same result. How can I create an "admin" user?
admin
in 16.04 though – Anwar Oct 15 '16 at 17:39-N
option, however you should be able to use either--ingroup GROUP
to set the new user's primary group to an existing groupGROUP
, or--group GROUP
to set the new user's primary group to a non-preexisting groupGROUP
, overriding creation of the default user private group. – steeldriver Oct 15 '16 at 17:54admin1
though. That's what i personally did – Sergiy Kolodyazhnyy Oct 15 '16 at 18:05