- Install “sudo”
yum install sudo
- Make sure the following content in the “/etc/sudoers” file below is enabled
## Allows people in group wheel to run all commands
If it’s not enabled, you need to run “chmod u+w /etc/sudoers” before editing the file and “chmod u-w /etc/sudoers” after finishing the editing.
- Create a user account and add it into the “sudo” list
useradd -m auser