[myuser@machine ~]$ su -
Password:
[root@machine ~]# visudo
This will open your sudoers file for editing. visudo will protect you from some, but not nearly all mistakes. So, for this quick dirty example search for the following section:
## Allow root to run any commands anywhereThen, add the following directly below it:
root ALL=(ALL) ALL
myuser ALL=(ALL) ALLThe end result should look like:
## Allow root to run any commands anywhereNOTE: The above is separated by TABS so you would type it as follows:
root ALL=(ALL) ALL
myuser ALL=(ALL) ALL
myuser[TAB]ALL=(ALL)[TAB]ALL
Save & close (:wq)
[root@machine ~]# exit
[myuser@machine ~]$ sudo someCommand
FIN