Guillermo Garron

From my head

How to use useradd to create and administer users under Linux

Written by Guillermo Garron .
Date: 2012-11-29 11:43:32 -0400

This is a command all Linux administrators should know, because they are the people in charge of creating users accounts, this will be one of three different posts about managing users.

useradd, creates a new user or update default new user information.


useradd [options] LOGIN

Some of its options are:

  • -d home directory
  • -s starting program (shell)
  • -p password
  • -g (primary group assigned to the users)
  • -G (Other groups the user belongs to)
  • -m (Create the user’s home directory


useradd -g primary_grp -G admin -s /bin/shell -p xxxx -d /home/user -m user


If you enjoyed the article, please share it

twitter | facebook | google+ | linkedin | email | reddit