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?

1
  • 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, 2012 at 11:31

2 Answers 2

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>
2
  • 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. May 19, 2012 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. Jan 7, 2013 at 0: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.)

Not the answer you're looking for? Browse other questions tagged .