Q: How do I add a user to the wheel group in OpenBSD or NetBSD?

A: Beyond simply editing /etc/group with your favorite text editor, adding a user to the wheel group can be achieved in a few different ways.

To place a user in the wheel account when her account is first created, you would run

   $ sudo useradd -G wheel jdoe

 
Note: The above also creates the jdoe group automatically, use the -g argument if you wish her default group to be different.

If the user already exists and you wish to add her to the wheel group, you would run

   $ sudo user mod -G wheel jdoe

 

This entry was posted in Answers, NetBSD, OpenBSD, System Administration. Bookmark the permalink.

2 Responses to Q: How do I add a user to the wheel group in OpenBSD or NetBSD?

  1. Blixx says:

    My freebsd box doesn’t understand your commands above.

    Can you check for errors

    cheers!

  2. Valintino says:

    Hello, Your site is great. Regards, Valintino Guxxi

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>