I created a user in terminal by
I'm able to log in from the terminal but not in the GUI.
What is wrong?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
This might be because
useradd didn't create a home directory for your new user. You should use
instead and avoid using
useradd since it is a backend command needing more input.
if you still want to use
useradd use at least
useradd -m xyz
to create a home directory. But this still might be insufficient.
Before starting now you might want to remove the user you created wrong by
so you can create it again correctly without problems.
If you have a GUI it might be easier to just use the GUI for adding the new user (usually somewhere in System-settings -> Accounts). This might also solve some problems with usergroups which might appear as @Videonauth pointed out.