Skip to content

Instantly share code, notes, and snippets.

@rcarmonad
Created July 28, 2014 22:00
Show Gist options
  • Save rcarmonad/f0dedd8a6789028c5fde to your computer and use it in GitHub Desktop.
Save rcarmonad/f0dedd8a6789028c5fde to your computer and use it in GitHub Desktop.
How to add a user to sudoers on centos
#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