How to create wheel user and password for a server ?

From PheonixSolutions
Jump to navigation Jump to search

Step 1:- Login to the server

ssh username@ip -p port number

Step 2:- To add username follow as mentioned below

adduser <username>

Step 3:- Provide a strong password and save it for further use

Enter new UNIX password: ***************

Retype new UNIX password:**************

passwd: password updated successfully

Step 4:- Fill the following information else just press enter, it will take the default value

Changing the user information for sammy

Enter the new value, or press ENTER for the default

Full Name []:

Room Number []:

Work Phone []:

Home Phone []:

Other []:

Is the information correct? [Y/n] y

Step 5:- Add the created user to sudo group

usermod -aG sudo <username>

[sudo] password for <username> : <provide the password used for adduser> |}

Step 6:- Exit the server and try to login the server with the username and password which have been created recently