Ch-center
For Operating Systems
#129
How To Create A New User In CentOS 7

Before we get started please go ahead and login to your server as the root user via SSH. If you’re not certain how to access your server using SSH, don’t you worry we’ve got you covered: Connecting to Your Server via SSH. Once you have logged into your server via SSH as the root user, please proceed to the following steps to add a new user to your server.

Step 1: Use the adduser command followed by the username you’d like to create
​​​​​​​
Code: Select all
adduser newusernamehere​​​​​​​
Step 2: Set the password for the new account using the passwd command followed by the password you’d like to use for this account
Code: Select all
passwd newusernamehere
If you followed both steps successfully, the new user should now be added to your server. You can test this by issuing the su command followed by the username for the account that you just created:
Code: Select all
su - newusernamehere
You should now be logged in as the new user!
https://www.ch-center.com/knowledgebase More tutorials!

 
Ch-center
SPECIAL DEDICATED SERVER OFFER - LIMITED STOCK LEFT

Intel® Xeon 2.53GHz [...]