1 Jul 2008

Creating a new user in Ubuntu command line

This is just a quick tutorial on how to create a new user using shell commands in Ubuntu (similar to any other linux system).

First create the user and it's home directory inside /home directory:

# sudo useradd -d /home/<newusername> -m <newusername>

Then set it's password:

# sudo passwd <newusername>

Now you can try the newly created user account like this:

# su <newusername>

No comments: