Setting up CentOS – Add users

Add a user with the command “useradd.” For example, to add an admin user to the wheel group, run the following command:

useradd newuser -g wheel

Set the password for the new user:

passwd newuser

Allowing sudoers

Uncomment the line in the sudoers file allowing the wheel group to sudo. This is accomplished via the visudo command:

## Allows people in group wheel to run all commands
%wheel  ALL=(ALL)       ALL

 

Be the first to comment

Leave a Reply

Your email address will not be published.


*