My Ubuntu only allowed guest login to desktop.Once I login to System as user ,It jump to login interface again and very quick please i need a simple answer with a simple langauge
2 Answers
Ok. Try this. Open a TTY by pressing Ctrl + Alt + F2. Login here and run sudo apt-get install gdm
. Choose it as default when prompted and reboot.

- 19,395
- 12
- 50
- 65
-
lol i dont know what's tty – Ȝîmǟd May 05 '15 at 11:33
-
You don't need to. Just press those keys. – TheWanderer May 05 '15 at 11:34
-
and how to choose it as default .... ? – Ȝîmǟd May 05 '15 at 11:35
-
It will prompt you. Read the answer fully through. – TheWanderer May 05 '15 at 11:36
-
ok bro i'll try it i really preshaydit – Ȝîmǟd May 05 '15 at 11:37
-
i'm not lucky i did the steps – Ȝîmǟd May 05 '15 at 11:46
-
And what happened? – TheWanderer May 05 '15 at 11:46
-
it is saying that login incorrect i'm typing the correct pass word – Ȝîmǟd May 05 '15 at 11:46
-
You can just type the password. You need to type your username, hit enter and then type tour password. – TheWanderer May 05 '15 at 11:47
-
when it appears the black screen i writte sudo apt-get install gdm – Ȝîmǟd May 05 '15 at 11:49
-
do you have a facebook account ? – Ȝîmǟd May 05 '15 at 11:50
-
You can't just type it right away. When the screen comes up, wait a few seconds and it will prompt you for your username. After entering that and hitting enter, you will be asked for your password. Once you login, run the command. – TheWanderer May 05 '15 at 11:53
-
i did it but it said that gdm is already installed but the good new is that i logged in i just type sudo startx and then it works – Ȝîmǟd May 05 '15 at 12:14
-
Which version of Ubuntu are you using? Version number and name; ex: Kubuntu 15.04. – TheWanderer May 05 '15 at 12:29
Installing GDM is one possible solution, but it's probably not the one you're looking for. Again, press [Ctrl] + [Alt] + [F1] and log on. This time, however, type
sudo chown -R username /home/username
replace usename with your username in the cases above. So if you are user john, type
sudo chown -R john /home/john
and this will make your user the owner of everything in your home folder. This is where all of the settings your computer uses are stored. Because the guest account works, I think this is probably your problem.
If that doesn't work, try again logging in to TTY1 (Ctrl+Alt+F1) then type
cd
Then type
rm -Rf ./.*
WARNING!!: THIS WILL ERASE YOUR EMAIL, FIREFOX, DESKTOP BACKGROUND, etc. SETTINGS!
While this means that you will have to re-set the background and retype your passwords in thunderbird and other network apps, it should allow you to log in. Please also note this will delete any GPG keys you may have created. If you don't know what that is, don't worry about it, it's not important in that case.
Good luck with this, usually the problem is something stupidly simple but devilishly hard to find.

- 220