Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 .

share|improve this question
2  
    
1. related cyberciti.biz/faq/linux-list-users-command –  lion Jun 10 at 18:05
add comment

2 Answers 2

up vote 3 down vote accepted

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.

share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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