Adding a user to sudoers

This page has been converted from the Fedora Project Wiki and cleaned up for publishing here on the Fedora Docs Portal, but it has not yet been reviewed for technical accuracy. This means any information on this page may be outdated or inaccurate. Reviews for technical accuracy are greatly appreciated. If you want to help, see the README file in the source repository for instructions.

One of the most common operations that administrators want to accomplish when managing sudo permissions is to grant a new user general sudo access. This is helpful if you want to give an account full administrative access to the system.

Giving a user sudo privileges

On Fedora, it is the wheel group the user has to be added to, as this group has full admin privileges. Add a user to the group using the following command:

$ sudo usermod -aG wheel username

If adding the user to the group does not work immediately, you may have to edit the /etc/sudoers file to uncomment the line with the group name:

$ sudo visudo
%wheel ALL=(ALL) ALL