Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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, DragonLord, 8088, techie007 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.

2  
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
1  
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
1  
ok, my assumptuion was wheel and admin are bulit in groups –  Natasha Thapa Oct 13 '12 at 15:28
show 3 more comments

Browse other questions tagged or ask your own question.