Created
July 28, 2014 22:00
-
-
Save rcarmonad/f0dedd8a6789028c5fde to your computer and use it in GitHub Desktop.
How to add a user to sudoers on centos
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
#login as root | |
user@machine $ su | |
password: [enter password] | |
root@machine:# visudo | |
##### | |
### search for line | |
## Allow root to run any commands anywhere | |
root ALL=(ALL) ALL | |
## Add the following | |
youruser ALL=(ALL) ALL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment