On 23 Jan 18:42, Chris G wrote:
On Fri, Jan 23, 2009 at 05:49:59PM +0000, Steve Fosdick wrote:
On Fri, 2009-01-23 at 14:33 +0000, Chris G wrote:
Yes, I have found *exactly* those links and they don't address my problem at all. They address the problem of when it's non-root user at the other end. I had to do what they say to get it so that I can run a non-root X process on the remote system. The issue is that, having fixed all those problems so that X works, I *still* can't run network-admin.
Chris,
Are you by any chance using ssh to log in to the remote system as a regular user and then using 'su' to get root access?
If so try using plain 'su' rather than 'su - '.
This should leave the XAUTHORITY environment variable as ssh had set it and should avoid the issue.
No, I've tried that:-
chris$ ssh -X -Y garage chris@garage's password: chris@garage:~$ su Password: root@garage:/home/chris# network-admin X11 connection rejected because of wrong authentication. X11 connection rejected because of wrong authentication. (network-admin:5228): Gtk-WARNING **: cannot open display: localhost:10.0
I've tried just "ssh -X" and "ssh -Y" too.
apt-get install sudo
Then configure sudo access for your user, then ssh -X in to that box and bob should be your aunties husband if you then use: sudo network-admin
as your normal user.
Cheers,