Create user in linux

Create user in linux

 

  • Use the adduser command to add a new user to your system.
  • Be sure to replace username with the user that you want to create.
  • adduser username
  • Use the passwd command to update the new user’s password.

Set password for a user in linux

  • passwd username
  • Set and confirm the new user’s password at the prompt. A strong password is highly recommended!

Set password prompts:
Changing password for user username.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.