Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to add a use to wheel group using in a Ubuntu server.

sudo usermod -aG wheel john

I get:

usermod: group 'wheel' does not exist

On my /etc/sudoers I have this:

>  cat /etc/sudoers
> # sudoers file.
> #
> # This file MUST be edited with the 'visudo' command as root.
> #
> # See the sudoers man page for the details on how to write a sudoers file.
> #
> # Host alias specification
> # User alias specification
> # Cmnd alias specification
> # Defaults specification
> # User privilege specification root    ALL=(ALL) ALL %root   ALL=(ALL) NOPASSWD: ALL
>     %wheel  ALL=(ALL) NOPASSWD: ALL

Do I have to do groupadd of wheel?

share|improve this question

closed as not a real question by Randolph West, Canadian Luke, bwDraco, 8088, Ƭᴇcʜιᴇ007 Oct 14 '12 at 15:42

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Does the group "wheel" exist? Try grep wheel /etc/group. Another thing, why are you trying to add someone to the wheel group? Beware the XY problem. – terdon Oct 13 '12 at 15:21
grep wheel /etc/group doen't find anything – Natasha Thapa Oct 13 '12 at 15:24
So, the wheel group does not exist. Again, what is it you are really trying to do? – terdon Oct 13 '12 at 15:25
OK, please update your question explaining why you need to add a user to the wheel group. This really sounds like a case of the XY problem. In general, yes, in order to add a user to a group, you need to create the group first. – terdon Oct 13 '12 at 15:28
ok, my assumptuion was wheel and admin are bulit in groups – Natasha Thapa Oct 13 '12 at 15:28

Browse other questions tagged .