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?
22 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