>>>>> "krishna" == krishna rajesh <[EMAIL PROTECTED]> writes:

    krishna> Hi, I am using Fedora core 5. There's no display problem
    krishna> when logged in as root/non-root user.The problem comes
    krishna> when i logged in as root user and switches to non-root
    krishna> user using su command ,

    krishna> getting display error as follows :

    krishna> Xlib: connection to ":0.0" refused by server Xlib: No
    krishna> protocol specified display: unable to open X server
    krishna> `:0.0'.

    krishna> But when the same non-root user logged in no problems
    krishna> with display.

    krishna> The DISPLAY was as follows #echo $DISPLAY :0.0

    krishna> Could anyone plz suggest me the alternative of setting
    krishna> the xdisplay to work with non-root users when logged as
    krishna> root user.


The problem can be fixed by running the xhost command with the
appropriate argument :-) Read man xhost for details.

But the question to be asked here, what are you doing as root user in
the X window system? Please create a user for yourself and work as
that user. Use the root user only for system related work. sudo is
preferred over working directly as root.

HTH
-balaji



-- 
http://balajin.net/blog

Reply via email to