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
Previous revision
add_a_user_to_the_sudoers_in_fedora [2011/05/28 15:54]
adam Change to demonstrate either individual users or using groups
add_a_user_to_the_sudoers_in_fedora [2016/11/25 22:38] (current)
Line 1: Line 1:
 ===== Allow a User to use sudo ===== ===== Allow a User to use sudo =====
 +
 +You can allow a user to use sudo either by adding them to a group which is allowed to sudo, or by specifying the individual user.
  
 Use visudo to edit /​etc/​sudoers,​ it uses the system default editor, which is normally vi or vim if it's installed: Use visudo to edit /​etc/​sudoers,​ it uses the system default editor, which is normally vi or vim if it's installed:
Line 13: Line 15:
 Then add your user to the wheel group: Then add your user to the wheel group:
  
-  [root@machine ~]# adduser ​<​username> ​wheel+  [root@machine ~]# adduser ​adam wheel
  
 ==== Individual Users ==== ==== Individual Users ====
Line 22: Line 24:
  
  
-Now the user specified by <​username> ​will be able to use the sudo command.+Now the user adam 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)