Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 577150

Summary: Changing hostname causes X11 clients to lose access to display
Product: Gentoo Linux Reporter: Mike Gilbert <floppym>
Component: [OLD] UnspecifiedAssignee: Gentoo X packagers <x11>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=577002
Whiteboard:
Package list:
Runtime testing required: ---

Description Mike Gilbert gentoo-dev 2016-03-12 14:28:28 UTC
Changing the hostname while X is running causes any entries in ~/.Xauthority to be rendered invalid. This will cause X clients to lose access to the display.

This seems to be a common/known issue throughout the internet, but I wanted to open a bug to see if anyone has an idea for how to make this work better.

% xauth list
naomi/unix:0  MIT-MAGIC-COOKIE-1  3abfa887b6a166c2d35530217bed7f86
% sudo hostname naomi2
% glxgears
No protocol specified
Error: couldn't open display :0
% sudo hostname naomi 
% glxgears           
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
Comment 1 Piotr Karbowski (RETIRED) gentoo-dev 2019-06-20 22:00:40 UTC
As we spoke on IRC, closing this one.