Re: xdm and su xauth problem
On Sun, Aug 13, 2006 at 16:19:50 +0200, Lubos Vrbka wrote:
> >One possibility is
> >xauth -f /home/user/.Xauthority extract - $DISPLAY | xauth merge -
> >where "user" is the user that logged on to xdm. This will extract the
> >user's authorization cookie for the current display and merge it into
> >root's authority file. Then root should be able to access the display
> >until user logs out again. (I tested this with kdm, but I assume it
> >works for xdm as well.)
> ok, this works. after su, i enter this command and then X apps work
> again. is there any way how this could be 'automated'?
You can put the command into /root/.bashrc, then it is executed whenever
you do "su".