Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am logged in as user_a. I created another account user_b with root privileges using the following steps:

sudo -s
useradd user_b
passwd user_b
sudo adduser user_b admin

After which I rebooted and tried to login as user_b but after typing the password, I see momentary darkness and then the login screen again. This does not happen if I try to type some incorrect password, as I am prompted immediately. I can login just fine to the guest_account and user_a but the newly created user_b is causing problems.

How do I fix this?

share|improve this question

you used a password that is the same as the username? If so, I believe that Ubuntu doesn't like this. If not, have you checked the useradd GUI that ships with Ubuntu to ensure that user_b is listed?

share|improve this answer
The question doesnt' seem to say the password is the same as the username. And if it were, that wouldn't be a problem (except that it would be a very easy password to guess)--Ubuntu doesn't have a problem with that. Furthermore, useradd is a command-line program, not a graphical utility. – Eliah Kagan Jul 22 '12 at 21:09

Your Answer


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.