This shows you the differences between two versions of the page.
add_a_user_to_the_sudoers_in_fedora [2011/05/28 16:56] adam |
add_a_user_to_the_sudoers_in_fedora [2016/11/25 22:38] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== 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 / | ||
- | |||
- | [root@machine ~]# visudo | ||
- | |||
- | ==== Using Groups ==== | ||
- | |||
- | Uncomment the line: | ||
- | |||
- | # %wheel | ||
- | |||
- | Then add your user to the wheel group: | ||
- | |||
- | [root@machine ~]# adduser adam wheel | ||
- | |||
- | ==== Individual Users ==== | ||
- | |||
- | Add a new line which specifies the user: | ||
- | |||
- | adam ALL=(ALL) | ||
- | |||
- | |||
- | Now the user adam will be able to use the sudo command. |