Home Add User To A Server
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
topic

Add User To A Server

Last Updated: February 27, 2020

This has to be done as a root user.

To add a user to one of the linux server using the following command:

useradd useradd -m -s /bin/bash <username> Code language: Bash (bash)

-m creates the user’s home directory at /home/<username>

-s /bin/bash sets the user’s shell to bash

To set a user’s password use the following command:

passwd <username> Code language: HTML, XML (xml)