>  I am using Fedora core 5. There's no display problem when logged in as 
> root/non-root user.The problem comes when i logged in as root user and 
> switches to non-root user using su command ,
>
>  getting display error as follows :
>
>  Xlib: connection to ":0.0" refused by server
>  Xlib: No protocol specified
>  display: unable to open X server `:0.0'.
>
>  But when the same non-root user logged in no problems with display.
>
>  The DISPLAY  was as follows
>  #echo $DISPLAY
>  :0.0
>
>  Could anyone plz suggest me the alternative of setting the xdisplay to work 
> with non-root users when logged as root user.
>

When you 'su' from one user to other, the user environment variables
are not reset. Two ways to address this:

use hyphen when you are suing...
# su - username

or run the .bash_profile for the changed user...

Ram

-- 
________________________________________

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/>M d- s++:+ a- C++(++++) ULBS++++$ P+++>$ L+++$ E+ W++
N++ O! M! V! PS+ PE+ Y+ PGP>+++ 5! X! R- !tv b++(+++) DI+++ D--
G-- e++>++++ h r+ y+
------END GEEK CODE BLOCK------
-----------------------------------------------------------------

Reply via email to