How to make Fedora user a sudoer?   Leave a comment

Add the user to the wheel group:

gpasswd wheel -a username 

I use gpasswd because not all versions of usermod have 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 wheel should have the same effect. You could also use the system-config-users GUI, of course.

If you are using Fedora 14 or earlier, use visudo to edit the sudoers file, 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 wheel is all you need to do.

See also this question and answer over on Server Fault for information on granting sudo-like “auth as self” behavior to wheel group members for graphical apps which use consolehelper or PackageKit


Posted 2011年12月30日 by gw8310 in linux

Tagged with


Fill in your details below or click an icon to log in: 徽标

You are commenting using your account. Log Out /  更改 )

Google+ photo

You are commenting using your Google+ account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s

%d 博主赞过: