9

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?

Zanna
  • 72,312
aitor
  • 291

2 Answers2

9

As steeldriver suggest, this works:

# adduser admin --ingroup sudo
aitor
  • 291
0

You should never create a user called exactly "admin". On many distributions this user exists and is used for system purposes. Some applications may refer to it too. If you create this user he may have unrestricted root-like system access through security settings in some scripts. If you try to alter this user's rights some applications will stop working.