On Mon, Jan 26, 2009 at 02:33:55PM +0000, Brett Parker wrote:
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
That's where I started from, it's an xubuntu box and has sudo already, I added a root account because I needed it for setting up some backup processes (or at least it was easier). Using sudo produces exactly the same results.
However ... back at the ranch (or on the ubuntu list actually) someone else eventually fought their way to an answer:-
Get to root on the remote system (using sudo or su, it matters not) and then say:-
ck-launch-session services-admin
*That* works.
Just to confirm, if I do:-
chris$ ssh -X garage chris@garage's password: chris@garage:~$ sudo network-admin [sudo] password for root:
then I get a network-admin session with the undo button *and* the list of services all greyed out, I can't do anything.
However if I do:-
chris$ ssh -X garage chris@garage's password: chris@garage:~$ sudo ck-launch-session services-admin
Then I get a network-admin session with the list of services enabled so that I can start and stop them etc.