Bug 235175 - Unable to launch X application after changing the hostname with hostname command line
Unable to launch X application after changing the hostname with hostname comm...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: XFree86 (Show other bugs)
6
i586 Linux
medium Severity medium
: ---
: ---
Assigned To: X/OpenGL Maintenance List
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-04 06:13 EDT by Frederic Hornain
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-04-04 09:17:14 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Frederic Hornain 2007-04-04 06:13:45 EDT
Description of problem:
Well, I am unable to launch for instance "system-config-users" after having 
changed the hostname from "localhost" to "my_chosen_hostname" with the command 
line hostname.

Version-Release number of selected component (if applicable):
xorg-x11-server-Xorg-1.1.1-47.7.fc6
system-config-users-1.2.47-1.fc6

How reproducible:
Easily if you have a X server on your local machine

Steps to Reproduce:
1. Be connected on an X session with you favorite username.
2. Open a Terminal windows in order to enter command line.
3. do an su - and be connected as root.
4. do a "hostname blablabla" in order to change your hostname from "localhost" 
to "blablabla".
5. run the system-config-user command
6. and finally you should have the following message : See actual result.
  
Actual results:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


Unable to import modules. Maybe you are not running under X ?

Expected results:

Well, I should see the user-configuration window.

Additional info:
Comment 1 Matěj Cepl 2007-04-04 09:17:14 EDT
Reporter, this is not problem of X, but in your configuration. Nobody is allowed
to run application on your X-server, and that includes root. In order to allow
root to run X applications, you have to allow it explicitly with xhost, for
example by running (as normal user owning X-server):

xhost local:

So, this is not a bug.

Note You need to log in before you can comment on or make changes to this bug.