How to use ~/.Xauthority instead of /tmp/.Xauthority when using GDM?

Solution Verified - Updated -

Issue

When login via GDM, X Window System authority file (XAUTHORITY) uses files under /tmp.

$ xauth -v
Using authority file /tmp/.gdm0JMTUW

$ echo $XAUTHORITY
/tmp/.gdm0JMTUW

How do I configure for the XAUTHORITY to use ~/.Xauthority under user directory?

Environment

  • Red Hat Enterprise Linux 5
  • Desktop Environment (e.g. GNOME)
  • GDM

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.