π ~1 min read
Table of contents
Symptom & Impact
User returns to login screen immediately after authentication.
Environment & Reproduction
Happens after graphics stack changes or corrupted profile files.
systemctl status gdm3
loginctl list-sessions
journalctl -u gdm3 -n 100 --no-pager
Root Cause Analysis
Broken session files, permission errors in home, or graphics backend mismatch.
Quick Triage
Check ownership and display-related errors.
ls -ld $HOME
ls -la $HOME | grep -E 'Xauthority|xsession|ICEauthority'
journalctl -b -p err --no-pager | grep -Ei 'gdm|gnome-shell|wayland|xorg'
Step-by-Step Diagnosis
Validate writable home and isolate problematic startup configs.
touch $HOME/.login-test
rm -f $HOME/.login-test
stat -c '%U:%G %a' $HOME

Solution – Primary Fix
Reset stale session cache and restart display manager.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
mv $HOME/.Xauthority $HOME/.Xauthority.bak.$(date +%s) 2>/dev/null || true
mv $HOME/.ICEauthority $HOME/.ICEauthority.bak.$(date +%s) 2>/dev/null || true
sudo chown -R $USER:$USER $HOME
sudo systemctl restart gdm3

Solution – Alternative Approaches
Switch session type at login to isolate Wayland/Xorg issues.
grep -E 'WaylandEnable' /etc/gdm3/custom.conf
sudoedit /etc/gdm3/custom.conf
sudo systemctl restart gdm3
Verification & Acceptance Criteria
User session starts and remains stable for repeated logins.
loginctl session-status
journalctl -u gdm3 -n 40 --no-pager
Rollback Plan
Restore backed-up authority files if custom tooling depends on them.
ls -la $HOME/.Xauthority.bak.*
ls -la $HOME/.ICEauthority.bak.*
Prevention & Hardening
Avoid running desktop config tools as root in user home directories.
find $HOME -maxdepth 1 -user root -ls
chown -R $USER:$USER $HOME
Related Errors & Cross-Refs
Commonly appears after GPU driver or display manager updates.
Related tutorial: View the step-by-step tutorial for Ubuntu 24.04 LTS.
View all Ubuntu 24.04 LTS tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Ubuntu GNOME session troubleshooting and GDM configuration docs.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.