Tell me more ×
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
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
i am just getting used to with ubuntu, i am new with unix roles and user – Natasha Thapa Oct 13 '12 at 15:26
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
show 2 more comments

closed as not a real question by Randolph West, 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, see the FAQ.

Browse other questions tagged or ask your own question.