How To add a new user Linux command

Article By: tommy


img

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: , , , , , , , , , , , ,


Welcome to the healthcare-only HIPAA - GDPR compliant cloud. Exclusively hosted on a HPC environment!

Learn more or start today by choosing your secure HIPAA - GDPR compliant server's Operating System bellow and pick the package that's best for you.

BIPmd makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine, thousand or more.



Windows VPS options and add ons
Linux VPS options and add ons

>

Looking for a custom solution?

Our technicians can provide you with the best custom-made solutionss on the market, no matter whether you're a small business or large enterprise.

Get in touch

Leave a Reply



Feedbacks