Re: Passing X credentials across su with localhost:displayno



On Wed, 24 May 2006 20:21:10 +0000, Dan Stromberg wrote:


Hi folks.

I've been using $(hostname):displayno for a while now, and it works
well, even across su, due to a python wrapper script I wrote that will
save the relevant X credential in a user-readable-only file and give
that file to the target user (with a setuid C wrapper for the script
itself to allow giving away files and a bash wrapper for the C wrapper
for convenience features :)

However, I'd like to do the same with localhost:displayno (with
"X11UseLocalhost yes"), but the same technique does not appear work in
this case. Why is that? Is there some sort of extra layer of
verification going on with localhost:displayno relative to
$(hostname):displayno that prevents other users from authenticating,
even if they have the credentials (IE, the xauth cookie and same
$DISPLAY).

Thanks!

I probably should be more specific.

It's been a while since I looked at this, but I believe localhost:123 (for
example) didn't show up in xauth's list of displays, so there was nothing
to pass...

.



Relevant Pages

  • Re: Passing X credentials across su with localhost:displayno
    ... well, even across su, due to a python wrapper script I wrote that will ... the relevant socket is not in the internet domain bound ... one's own X credentials to another user by writing them to a file in /tmp. ...
    (comp.security.ssh)
  • Passing X credentials across su with localhost:displayno
    ... due to a python wrapper script I wrote that will save the ... the target user (with a setuid C wrapper for the script itself to allow ... if they have the credentials. ...
    (comp.security.ssh)
  • Re: Annoying problem with GTK apps
    ... On Saturday 09 April 2005 06:54, Kevin B. McCarty wrote: ... wrapper around su which will transfer your X credentials ... > Sux is a wrapper around the standard su command which will transfer ... > your X credentials to the target user. ...
    (Debian-User)
  • Re: root cant change permissions, owner
    ... The Debian package describes it as a "wrapper around su which will ... transfer your X credentials". ... something like sux might be helpful for me. ...
    (comp.os.linux.misc)
  • Re: root cant change permissions, owner
    ... The Debian package describes it as a "wrapper around su which will ... transfer your X credentials". ... used by suse and others not capable of utilizing pam ...
    (comp.os.linux.misc)