Linux

How do you create users? Where user information is stored?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

Command to create users is useradd

Syntax: useradd [options] Username

There are 2 configuration files, which stores users information

  1. /etc/passwd - Users information like, username, shell etc is stored in this file

  2. /etc/shadow - Users password is stored in encrypted format