Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision Both sides next revision
useradd [2012/12/07 16:52]
127.0.0.1 external edit
useradd [2015/06/26 23:10]
steve
Line 3: Line 3:
   * [[usermod]]   * [[usermod]]
   * vipw   * vipw
 +
 +== Create a new user, with a home ==
 +
 +  * **-g** Primary group of ''​users''​
 +  * **-m** Create the user's home directory
 +  * **-N** Do not create a group with the same name as the user
 +  * **-s** login shell of the new account
 +
 +<​code>​
 +useradd -g users -m -N -s /bin/sh <​user>​
 +</​code>​
  
 == Create a new cloned user == == Create a new cloned user ==