[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xterm problem




Bill Katsma wrote:
>>soome time I wish to su to another user (root) and run an application as that
>>user but I seem to have a problem when it is trying to redisplay back. iget 
>>"** WARNING **: cannot open display: "  I am not logged in on any other >>system this only when I do an su.
>> I can open xterm by typing this "xterm -display :0 &" then initiating the
>> command from the xterm but that is to messy.  I did not have a problem with
>> bsware 5.2.  I am running bsware 6.0 now.

Chris Pruden wrote:
>You need to allow yourself to connect to the X server...
>As root(or the user who started the Xserver) run
>
>xhost +127.0.0.1
>From this you can also allow other systems to display their programs on a 
>specific monitor.
>You will probably have to do this once per session, but someone else might 
>have a better idea, as well as potential security problems with this way.

Lets try 
export DISPLAY=0:0.0