How to stop Centos 7 Desktop returning to Login Screen after a successful login?

jemiloii picture jemiloii · Apr 27, 2015 · Viewed 14.3k times · Source

So I just did a fresh install of Centos 7 with the desktop. After the install, I installed my development environment and when to attach my windows ssd, but was told it needed to be shutdown instead of hibernation. So I restarted my system, booted into windows, and hit shutdown. Afterwards, I went to login into my Centos 7 System, and after a successful password entry, it'll start the login process, and then flash a black screen. Soon it'll show Started virtualization daemon, and then load the login screen again!

Why is it doing this? How can I fix it? Then how can I avoid this in the future!?

Thanks for your help!

Answer

gatejo picture gatejo · Jul 23, 2015

Interrupt the boot at the GRUB stage and boot to runlevel 1, AKA single user mode. Interrupt GRUB by typing a character such as "space" then append to the kernel line by typing "a", backspacing through "rhgb quiet" and appending " 1". This will give you a root shell and not a login prompt. From there you can comment all recent entries in /etc/environment , and reboot your server/PC