This question already has an answer here:

In my Ubuntu after login by my user account, I want to create another user I intered bellow commands :

adduser alex_2 -m

I created new user, but when I want to login, Ubuntu needs passwords and I did not gave that any password, as I mentioned I just typed adduser alex_2 -m. Am I should set a password? Also I can not login even when I set password blank .

marked as duplicate by karel, Eric Carvalho, Warren Hill, Luis Alvarado Jul 24 '14 at 18:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


you can run the command:

sudo passwd username

to create a password for the user. ("username" needs to be changed to the given username)

You could also disable the password, when running the command adduser, by appending the option --disabled-password. But that isn't recommended.


You need to open system settings, and go to users. Click unlock, then on the user you want to change, then the Account Disabled, next to password, and choose one of the 3 options from drop down.

Not the answer you're looking for? Browse other questions tagged or ask your own question.