Re: How to transfer X11 auth across sudo invocation
- From: "david.karr" <davidmichaelkarr@xxxxxxxxx>
- Date: Thu, 28 Feb 2008 11:32:49 -0800 (PST)
On Feb 28, 10:35 am, dsharp <sharp.d...@xxxxxxxxx> wrote:
There is a setting in the sudoers config file that controls how env
variables are passed when you run sudo. Maybe the person that manages
your sudoers file can change it for you. See the info about env_keep
and related env info here:
http://www.gratisoft.us/sudo/man/sudoers.html
or the comments in the sudoers file itself. I've used env_keep to
manage unusual env variables for non-root users using sudo on Linux.
I manage sudo on AIX but I haven't used this feature there, so it's
possible the AIX impl doesn't support it. On Linux, for example, the
following is a default:
Defaults env_reset
Defaults env_keep = "DISPLAY ..."
Doug
This seems like a good thing, but I doubt this will help for this.
Before sudoing, I printed $DISPLAY. After the sudo, I set DISPLAY to
that value and ran xterm. No luck. This is in addition to using
"xauth add" to copy the "xauth list" values from before the sudo.
.
- Follow-Ups:
- Re: How to transfer X11 auth across sudo invocation
- From: smallpond
- 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: dsharp
- Re: How to transfer X11 auth across sudo invocation
- From: dsharp
- How to transfer X11 auth across sudo invocation
- Prev by Date: Re: How to transfer X11 auth across sudo invocation
- Next by Date: Mount option for DVD
- 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
|