Celeb Glow
news | March 19, 2026

How to add a user to Ubuntu 12.04

This is very weird, when add a user using the command line then set a password I cant login using the GUI! is this a new thing or what?

2

2 Answers

You can add an new user (with the common options, and /home/[user] as home directory) with:

useradd -m -g users -s /bin/bash [user]

and then to set a password:

passwd [user]

EDIT: You can also add additional information about the user with:

chfn [user]
2

Please check your CapsLock and Language options (must be EN), also check if you have space in the password.

The command for creating new user is:

sudo adduser USERNAME (do not use spaces in the username)

After that you will specify the name of the user. Leave other options blank by push Enter.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy