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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content