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)