LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   open file in root! 1 ERROR (https://www.linuxquestions.org/questions/linux-general-1/open-file-in-root-1-error-241197/)

j.vilon 10-11-2004 12:02 AM

open file in root! 1 ERROR
 
Xlib: connection to ":0.0" refused by server
Gtk-WARNING **: cannot open display:

this is the error if i open 1 file on root, what is the problem? anyone knows?
tks

sether 10-11-2004 12:20 AM

just a guess, are you not using a gui? what kind of file are you trying to open?

RolledOat 10-11-2004 12:59 AM

The user has not allowed other users to connect to their desktop X display.

xhost + localhost

then

su - root
<enter password>
<enter command>

RO

CroMagnon 10-11-2004 01:33 AM

RolledOat's solution doesn't work on my system, but copying the user's .Xauthority to /root does the trick (you might not want to do this if root's .Xauthority is already set up for connecting to other systems - in that case, use 'cat ~user/.Xauthority >> /root/.Xauthority')

j.vilon 10-11-2004 08:27 AM

yes it's work ;)
tks guy's :D


All times are GMT -5. The time now is 12:02 PM.