Re: How to transfer X11 auth across sudo invocation
- From: "david.karr" <davidmichaelkarr@xxxxxxxxx>
- Date: Wed, 27 Feb 2008 13:59:20 -0800 (PST)
On Feb 27, 1:38 pm, "Bruce" <n...@xxxxxxxx> wrote:
"david.karr" <davidmichaelk...@xxxxxxxxx> wrote in message
news:6f74dba1-a91c-4ad7-a5e2-58a0c24a9696@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I connect from my Windows box to a AIX 5.3 box using SecureCRT, which
allows the transfer of X11 packets to my local box.
When I log in as myself into the box, with my local Cygwin-provided X
server running, I can display windows perfectly fine.
However, if after logging in, I then "sudo" to an administrative
account and then try to run something that tries to display windows,
it says that it can't connect.
I tried doing "env | sort" from both my user account and the
administrative account, to compare the differences. On the admin
shell, I set the following env vars from their value on my user
account:
DISPLAY, SSH_AUTH_SOCK, SSH_CLIENT, SSH_CLIENT, SSH_CONNECTION,
SSH_TTY
However, it still fails to connect. I imagine that one of these
variables is "tied" to my user account somehow, and won't work if I
just copy the value over (probably a good idea :) ).
So, what can I do to facilitate this connection from the admin account
to my local box's X server?
export DISPLAY?
I exported all of those variables I indicated that I set, including
DISPLAY.
.
- Follow-Ups:
- Re: How to transfer X11 auth across sudo invocation
- From: lahuman9
- Re: How to transfer X11 auth across sudo invocation
- References:
- How to transfer X11 auth across sudo invocation
- From: david.karr
- Re: How to transfer X11 auth across sudo invocation
- From: Bruce
- How to transfer X11 auth across sudo invocation
- Prev by Date: Re: Putty text during login
- Next by Date: Re: How to transfer X11 auth across sudo invocation
- Previous by thread: Re: How to transfer X11 auth across sudo invocation
- Next by thread: Re: How to transfer X11 auth across sudo invocation
- Index(es):
Relevant Pages
|