54

I have created a new user by using useradd command e.g.:

sudo useradd acreddy

Then new user is created but it is asking for a password what is the password?

heemayl
  • 93,925

2 Answers2

52

You need to set a password for the user. Use the passwd command:

Usage: passwd [options] [LOGIN]

So if you want to set a password for the new user, you type in:

sudo passwd acreddy 

and you're good.

muru
  • 207,228
Neil
  • 4,585
8

If you don't want to set password, you can do it by

passwd -d username