Logo 
Search:

Unix / Linux / Ubuntu Articles

Submit Article
Home » Articles » Unix / Linux / Ubuntu » CommandsRSS Feeds

Add a new user login to the system - useradd

Posted By: Alicia Hughes     Category: Unix / Linux / Ubuntu     Views: 4301

This article explains about useradd command with an example in unix.

useradd command is used to add a new user login to the system in unix.

Syntax of useradd Command

useradd [-u uid] [-g gid] [-d dir] [-s shell] [c - comment] [-m] login

Example of useradd Command

Example 1 : Add the user xinuosx to the system with a UID of 222, base directory /user/xinuosx, sbin/csh as its default shell, and a primary group of staff

useradd -u 222 -g staff /user/xinuosx -m -s /sbin/csh xinuosx
  
Share: 


Didn't find what you were looking for? Find more on Add a new user login to the system - useradd Or get search suggestion and latest updates.

Alicia Hughes
Alicia Hughes author of Add a new user login to the system - useradd is from London, United Kingdom.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!