On Tue, 2003-11-04 at 23:22, Jonathan Singer wrote:
> Andrew Farmer:
> > Use xauth properly instead: run `xauth list' as user, run `xauth add' with
> > the output as root.
> 
> This works for me, but needs to be repeated each time X restarts.
> 
> Hall Stevenson:
> > I've got what's supposedly the
> > "proper" and safe way to solve this, but it's on my Debian box at home. If
> > no one posts it, I can in a few hours.
> 
> I'd very much appreciate your posting it. I've been trying to get this
> working for nearly a year and while I've received many suggestions, none
> have worked.

Here it is:

# allow root to run programs when another
# user is running X
if [ ! "$USER" = "root" ]; then
  export XAUTHORITY=/home/$USER/.Xauthority
fi

Add this to root's .bashrc file.

Hall


--
[EMAIL PROTECTED] mailing list

Reply via email to