JAEN

Linux

useradd

CautionCreate a user

useradd -m -s /bin/bash <user>

Creates a user. -m makes the home dir, -G sets extra groups. Set a password with passwd afterwards.

Examples

  • useradd -m -G sudo taroCreate user in sudo group

Syntax

useradd [-m] [-s shell] [-G groups] <user>

Before you run it

Avoid UID collisions with system users.

Related commands

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store