Skip to content

Amritpal Singh

  • About

loop

June 22, 2016 admin

Ubuntu gets stuck in a login loop

Press Ctrl+Alt+F3 and login into the shell.

Now run ls -lah. If in the output the line

-rw-------  1 root root   53 Nov 29 10:19 .Xauthority

then you need to do chown username:username .Xauthority and try logging in.

Else, do ls -ld /tmp. Check for the first 10 letters in the left: they should read exactly so: drwxrwxrwt.

drwxrwxrwt 15 root root 4096 Nov 30 04:17 /tmp

Else, you need to do sudo chmod a+wt /tmp and check again.

If not both, I’d recommend you either

dpkg-reconfigure lightdm

or uninstall, reinstall it.
Now press Alt+-> until you reach the login screen again, and restart.

Enter your email address

Recent Posts

  • Comparison of reading IfcGloballyUniqueId from IFC in different OS
  • Git commands
  • Kill a process running on particular port in Linux
  • Deploy/Run a Django app with Apache and Gunicorn in Ubuntu
  • Deploy/Run a Django app with Nginx, Gunicorn and Supervisor in Ubuntu

Recent Comments

  • maillot de foot on Solving Differential Equation Representing Simple Harmonic Motion in SageMath
  • Elizabet Alward on Solving Differential Equation Representing Simple Harmonic Motion in SageMath
  • Jude Soloman on Solving Differential Equation Representing Simple Harmonic Motion in SageMath
  • Irina Ledec on Solving Differential Equation Representing Simple Harmonic Motion in SageMath
  • Harmanpreet Singh on Export drawing sheets of FreeCAD into PDF and SVG format from Python console – Done

Archives

  • March 2019
  • December 2017
  • November 2017
  • July 2017
  • March 2017
  • February 2017
  • January 2017
  • November 2016
  • September 2016
  • July 2016
  • June 2016
  • March 2016
  • February 2016
  • December 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015

Archives

Recent Posts

  • Comparison of reading IfcGloballyUniqueId from IFC in different OS
  • Git commands
  • Kill a process running on particular port in Linux
  • Deploy/Run a Django app with Apache and Gunicorn in Ubuntu
  • Deploy/Run a Django app with Nginx, Gunicorn and Supervisor in Ubuntu
  • About