1. useradd (User Linux Command)

If you do not wish to add a new user account by using a GUI tools, you can do it from a User Linux Command line with the useradd command.

useradd -mc "user name" -s /bin/bash john

The previous command will create a new user account for user john. -mc options instruct a useradd comment to put a comment about new user which is very often used to specify user’s full name. -s option will select the path for the default shell.

2. adduser

Another way to add a user is to use the adduser command. However this command may not be available on every distribution of Linux.

Simply type:

adduser john

and follow the instructions to add some details regarding the new user account.



Tags: , , , , , , , , , , , ,

Spin up a cloud server in no time flat

Simple setup. Full root access. Straightforward pricing.


DEPLOY SERVER




Leave a Reply