User Tools

Site Tools


add_a_user_to_the_sudoers_in_fedora

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
add_a_user_to_the_sudoers_in_fedora [2011/05/28 16:50]
adam
add_a_user_to_the_sudoers_in_fedora [2011/05/28 16:54]
adam Change to demonstrate either individual users or using groups
Line 1: Line 1:
-===== Add a User to sudoers in fedora =====+===== Allow a User to use sudo =====
  
-Edit /etc/sudoers in your editor of choice:+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   [root@machine ~]# visudo
 +
 +==== Using Groups ====
  
 Uncomment the line: Uncomment the line:
Line 12: Line 14:
  
   [root@machine ~]# adduser <username> wheel   [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. Now the user specified by <username> will be able to use the sudo command.
add_a_user_to_the_sudoers_in_fedora.txt ยท Last modified: 2016/11/25 22:38 (external edit)