- Install “sudo”
1 | yum install sudo |
- Make sure the following content in the “/etc/sudoers” file below is enabled
1 | ## 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
1 | useradd -m auser |
Done.