How to make Fedora user a sudoer?
Add the user to the
gpasswd wheel -a username
I use gpasswd because not all versions of
usermodhave an easy way to add the user to a group without changing all the users' groups. However, on any recent Fedora,
usermod username -a -G wheelshould have the same effect. You could also use the
system-config-usersGUI, of course.
If you are using Fedora 14 or earlier, use
visudoto edit the
sudoersfile, removing the
#from this line:
%wheel ALL=(ALL) ALL
This is the default in the sudoers file on Fedora 15 and newer, so adding the user to
wheelis all you need to do. Note that this won't take effect immediately; the easiest thing to do is log out and in again.
See also this question and answer over on Server Fault for information on granting sudo-like "auth as self" behavior to
wheelgroup members for graphical apps which use consolehelper or PackageKit.