How do you create a new user account in Linux from the command line?

How do you create a new user account in Linux from the command line?
Answer
To create a user account from a shell prompt:
  1. Open a shell prompt.
  2. If you are not logged in as root, type the command su – and enter the root password.
  3. Type useradd followed by a space and the username for the new account you are creating at the command line (for example, useradd jsmith).
 

Tìm kiếm

Back
Top