Steps to Create a New Sudo User on Centos
- Log into the server as the root user.
# ssh root@server_ip_address
- Add New System User in CentOS, replace username with name of new user.
# adduser username
- Use the passwd command to update the New User's password.
# passwd username
- Add User to the Wheel Group in CentOS
# usermod -aG wheel [I]username
[/I]
- Switch to the sudo User
Use the su command to switch to the new user account.
# su - [I]username
[/I]