On Fri, 2 Mar 2001, Shaul Karl wrote:
> > Hi
> >
> > I would like to run some X apps from a 'su -' shell xterm.
> >
> > I used to use the following trick to save myself the need of messing with
> > xauth:
> >
> > in the root shell I set:
> >
> > DISPLAY=:0.0
> > XAUTHORITY=/home/tzafrir/.Xauthrity
> >
> > (since root can read the user's home directory)
> >
> > However, this doesn't work anymore. Any idea if there is any way to make
> > it work?
> >
> > If not, can anybody give me the required xauth commands? (Yes, I tried the
> > man page, but I didn't fully understand it).
> >
>
>
> I do not know how is the following suggestion compared to what others have
> said but here is one way:
>
> bash-2.04# export XAUTHORITY=$(echo /var/lib/xdm/authdir/authfiles/*)
This probably won't work as-is, because I use startx.
Anyway, I noticed that the X server recieves the Xauthority file as a
parameter. This means that the name of that file cold somehow be parsed
automatically (under some assumtions. e.g.: no more than one X server
running on that machine).
Anyway, in my case, I copied the file name from "set |egrep
'DISPLAY|XAUTHORITY'" just to be sure I don't mispell it.
I'll have to check that again later
--
Tzafrir Cohen
mailto:[EMAIL PROTECTED]
http://www.technion.ac.il/~tzafrir
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]