Add a user to the wheel group in OpenBSD

From ezUnix
Jump to: navigation, search
                                    pdf_icon.png Download this article as a single PDF document 

Introduction

Sudo stands for "su do", and means "do something as the supervisor". `sudo` is an enhanced alternative to the Unix `su` command which allows any user to obtain superuser privileges


Execution

Editing by hand

Simply edit /etc/group with your favorite text editor, adding a user to the wheel group.
Assuming your username is john_doe the entry for the wheel group will look as follows:

wheel:*:0:root,john_doe


Using sudo command

Adding a user to the wheel group can be achieved using the sudo command itself.

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

  # sudo useradd -G wheel john_doe


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 john_doe


That's all folks. Marcin


<comments />

Sudirr said ...

<comment date="2012-04-16T07:30:03Z" name="Sudirr"> Thanks for sharing the info, you solhud try Kchmviewer too, it has a lot of good and efficient features. They have a KDE version and a Qt one, which I use on Fedora 15. I must say is the best CHM Viewer I ever used.Ps: just to confirm, names in repos (At least Fedora) solhud be: - kchmviewer-qt (in case you're not in kde recommended)or- kchmviewer (you still don't need to use kde but it'll need a lot of kde dependencies, as expected) </comment>

Pinco said ...

<comment date="2012-05-22T02:43:07Z" name="Pinco"> Thanks for sharing the info, you shloud try Kchmviewer too, it has a lot of good and efficient features. They have a KDE version and a Qt one, which I use on Fedora 15. I must say is the best CHM Viewer I ever used.Ps: just to confirm, names in repos (At least Fedora) shloud be: - kchmviewer-qt (in case you're not in kde recommended)or- kchmviewer (you still don't need to use kde but it'll need a lot of kde dependencies, as expected) </comment>