Re: How to transfer X11 auth across sudo invocation



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.
.



Relevant Pages

  • Re: Mac OS X Security - Not Quite as Strong as you Thought
    ... What limits has 'sudo', in your view? ... The sudoers file is set up by Apple's installer; ... So, expert, how does it know about my account name ahead of time before I unpack the machine?? ... Aren't you the one that said "I have limited UNIX experience"? ...
    (comp.sys.mac.advocacy)
  • Re: root in FC 10
    ... but then the install doesn't add the one user it ... root passwd when I tried that, but no root passwd had been set ... was that user, and used that users passwd was "not in sudoers file, ... You'd get that message from sudo, ...
    (Fedora)
  • Re: Correct sudoers file configuration
    ... Jason Filippou wrote: ... with the setting up of the sudoers file. ... I'm required to input my password by sudo (to download and install ... this is standard sudo behavior if you don't have a root account on your ...
    (Debian-User)
  • Re: Sudo w/Ticket Support
    ... over the sudoers file on most of the systems I have access to. ... People who leave workstations unattended should not have sudo access. ... I acquire credentials locally and then ssh with gssapi to ... workstation (your boss stops by with an important question and you ...
    (comp.protocols.kerberos)
  • Re: How to transfer X11 auth across sudo invocation
    ... or the comments in the sudoers file itself. ... 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, ...
    (comp.unix.aix)