Created
October 15, 2010 17:59
-
-
Save rynmrtn/628645 to your computer and use it in GitHub Desktop.
How to add a user to sudoer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Used this on redhat - replace user-to-add with your username | |
echo 'user-to-add ALL=(ALL) ALL' >> /etc/sudoers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is good on a desktop machine but depending on your restrictions, may not be a good idea on a server. Typically with sudoers, you can also further restrict the user to only run certain commands (like httpd restart) with sudo on a server.