2

Possible Duplicate:
How to add user without useradd command?

I am trying to add users in Lubuntu 12.04. I have followed the instructions here which amounts to:

$ useradd username
$ passwd username

I entered the password twice, and everything seemed good. But when I try to use the username and password from the Lubuntu login screen, it fails, simply returning to the login screen.

(Note that this is not the 'incorrect password' behavior that my working account displays.)

Any ideas?

Eric Wilson
  • 1,016
  • 5
  • 14
  • 32
  • It may be a bug...I face it in UBUNTU 12.04 too.Try loging in in the terminal.If it successfully logs in in the terminal then its a bug in the log in display manager part. – Nirmik May 19 '12 at 11:31

2 Answers2

7

Rather than the low level utility useradd on a Debian based distribution (like Lubuntu) it is recommended to use adduser. This makes sure all defaults are installed correctly, and a user HOME is created appropriately.

Usage:

sudo adduser <username>
Takkat
  • 140,996
  • 54
  • 308
  • 426
  • 1
    This is really somewhat humorous. Thanks much `adduser` does what I want, I wonder if I'll be able to remember which is which. – Eric Wilson May 19 '12 at 14:37
  • 1
    @EricWilson If you ever become confused you can run `man adduser` and `man useradd` to see documentation and usage information for both commands. – Eliah Kagan Jan 07 '13 at 00:21
1

Lubuntu has a graphical administration tool for this. Go to:

LXDE Menu > System Tools > Users and Groups

(Or, if you prefer, run the command users-admin.)

Eliah Kagan
  • 116,445
  • 54
  • 318
  • 493