User Tools

Site Tools


add_a_user_to_the_sudoers_in_fedora

This is an old revision of the document!


Allow a User to use sudo

Use visudo to edit /etc/sudoers, it uses the system default editor, which is normally vi or vim if it's installed:

[root@machine ~]# visudo

Using Groups

Uncomment the line:

# %wheel        ALL=(ALL)       ALL

Then add your user to the wheel group:

[root@machine ~]# adduser <username> wheel

Individual Users

Add a new line which specifies the user:

adam        ALL=(ALL)       ALL

Now the user specified by <username> will be able to use the sudo command.

add_a_user_to_the_sudoers_in_fedora.1306598098.txt.gz · Last modified: 2016/11/25 22:38 (external edit)