Re: [gentoo-user] Re: xlib error

2003-11-04 Thread Hall Stevenson
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



[gentoo-user] Re: xlib error

2003-11-04 Thread Jonathan Singer
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.

Reg Hughson:
> I might as well as this as wellthis error only comes up when I have
> xdm or gdm running as my login. If I log on without either, issue
> startx, open a terminal and then 'su -', I don't get thsi error. Is that
> normal as well.

Actually the last time I tested it, the problem only occurred with kdm. With
gdm there was no problem su'ing to root  and running X apps. If there really
is a security issue with setting things up the way every other Linux distro
I've used does things, it would seem that the gdm maintainer is (or was)
violating it as well.


--
[EMAIL PROTECTED] mailing list