Hiya all. As I continued to work with my remote server’s shell, a new issue arose. I needed to add a new user to my system.
So, suppose that you want to add Mr. Friend to your system via bash:
useradd mrfriend
Okay, now you need to set a password for our friend:
passwd mrfriend
You will be prompted to enter the password and confirm it.
However, to do all this you need to be root. To do so, before entering any of these, type:
su -
Don’t forget the “–“, because otherwise you will get a “command not found” when you issue “useradd”.
Note: On some systems the command is “adduser” instead of “useradd”.