Login loop

Message
Author
mungy
Posts: 5
Joined: Wed Jul 27, 2022 5:37 am

Login loop

#1 Post by mungy »

Hi, since applying the latest updates on MX21 about a week ago, I am stuck in a login loop - password accepted, screen darkens briefly, then returned to login prompt.

I have booted from a live distro, and seem to have plenty of disk space.

Can anyone point me at a troubleshooting sequence for this?

User avatar
Eadwine Rose
Administrator
Posts: 14841
Joined: Wed Jul 12, 2006 2:10 am

Re: Login loop

#2 Post by Eadwine Rose »

Can you check if this might be the culprit?

--If in starting your system it boots to an unwanted Desktop, right click desktop, then select leave and logout. At the login screen there is a session chooser at the top of the screen.
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
korilius
Posts: 79
Joined: Sat Oct 15, 2022 9:31 pm

Re: Login loop

#3 Post by korilius »

I just ran into this problem, seemingly out of the blue last night. After breaking into the system via GRUB (networking wasn't started), a fair bit of searching with little luck and a fair bit of cursing to boot. I fixed the problem by deleting my .Xauthority. ->

Code: Select all

rm ~/.Xauthority
Notes:
I did forget and re-remembered that I could Ctrl-Alt-Esc-F1 into the shell and then Alt-arrowkeyleft back when finished.
The only thing I did before all this started happening was installing Proton versions on Steam and enabling Vulkan shader caching.
I tried other things although it only started working after deleting .Xauthority. Other things I attempted:
Reconfiguring lightdm (sudo dpkg-reconfigure lightdm)
switching to sddm - I got a black screen and was stuck after logging in
Reapplying ownership and fiddling with .Xauthority permissions.

I have yet to look around if there's a stickied page for dealing with tips / tricks / nuances / rare bugs and the like. Maybe we should start one if there is and put this there.

Long story short: delete .Xauthority in your home directory.
Guide - How to ask for help

Please @korilius when replying to me
Desktop: MX-23.6_x64 “Libretto”, KDE | ASUS mb | Ryzen 5 5500 cpu | Nvidia 3660 12gb gpu | 48gb mem | (2) Crucial 1Tb ssd

User avatar
CharlesV
Global Moderator
Posts: 7579
Joined: Sun Jul 07, 2019 5:11 pm

Re: Login loop

#4 Post by CharlesV »

@korilius +1
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
crackbarrel
Posts: 75
Joined: Sun Mar 24, 2024 11:11 am

Re: Login loop

#5 Post by crackbarrel »

I also had this problem on a virtual machine. Everytime I try to install a vnc server, it happened.

Was able to fix with the rm command above. Thanks

Edit:

For people who aren't familiar with linux, basically switch to terminal session with

Code: Select all

ctrl + alt + F#
(F1 for instance). Then enter your login name and password. Then type the rm command

Code: Select all

rm ~/.Xauthority
to remove the file from your home folder. If it didn't work, perhaps

Code: Select all

sudo rm ~/.Xauthority
will work.

Post Reply

Return to “XFCE Desktop Environment”