Categories

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.

Syntax:

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

Example

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

If you enjoyed the article, please share it

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


comments powered by Disqus

Sponsor

Bio.

My name is Guillermo Garron. I am telecommunications engineer from Bolivia

I like technology a lot, and this site is mainly dedicated to that

Social feeds

rss | twitter | email | google+

Posts via email

If you use the letter icon above and subscribe to my tinyletter newsletter, you will get one to two emails, related to this site, or not. If what you want is to get the posts of this site via email, use the form below

Enter your email address:

Delivered by FeedBurner