Bug 131656

Summary: X-windows apps will not start after hostname change
Product: [Fedora] Fedora Reporter: Tim Brown <tim1962>
Component: xorg-x11Assignee: X/OpenGL Maintenance List <xgl-maint>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 2   
Target Milestone: ---   
Target Release: ---   
Hardware: athlon   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-03-06 23:24:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tim Brown 2004-09-02 21:21:04 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2)
Gecko/20040308

Description of problem:
New install of FC2 - unable to start any x-windows apps after setting
hostname.  Also receive an error in xorg.o.log 
Error in log:
X: client 17 rejected from local host

If use hostname to set name back to localhost.localdomain applications
start working again.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.Boot to GUI (RL5)
2.Open terminal and su - to root
3.run "hostname usa"


Actual Results:  Try to start any xbased app and pointer goes to HG
and nothing happens

Expected Results:  X-app should have started

Additional info:

Comment 1 Mike A. Harris 2005-03-06 23:24:48 UTC
X authentication embeds the hostname into the .Xauthority file,
so you can not change the hostname out from under the running
X server by design (or flaw of design if you prefer).  You need
to restart the server or use xauth or xhost.