Xauthority location: only per-user setting possible
James Ralston
qralston+ml.openssh-unix-dev at andrew.cmu.edu
Fri Jul 13 05:43:26 EST 2001
On Mon, 9 Jul 2001, Jim Knoble wrote:
> This would probably work better:
>
> xauth -q -f "${XAUTHORITY}" - <<EOF
> add ${DISPLAY} ${proto} ${cookie}
> EOF
> [ $? -eq 0 ] || exit 1
>
> Using the here-document keeps things from appearing in ps no matter
> what kind of system you've got.
Yes, that it would. (I was more interested in banging off the example
and sending my message than pondering the Right Way to do it. ;)
I kinda disappointed that no one else followed-up to my suggestion,
though:
} The quickest solution is to simply add back in the
} xauth-cookie-in-tmp handling stuff, and make sure that
} xauthfile_cleanup_proc uses temporarily_use_uid(). I've come up
} with a patch against 2.9p2 to do exactly that, although I haven't
} tested it.
}
} I think a better solution (and one more in tune with the desires of
} the OpenSSH maintainers) would be to have OpenSSH capture the stdout
} of $HOME/.ssh/rc and process it in exactly the same way as
} $HOME/.ssh/environment.
Am I the only one (besides Pekka Savola) who cares that 2.9p2 broke
the ability to store one's Xauthority file outside of one's home
directory?
--
James Ralston, Information Technology
Software Engineering Institute
Carnegie Mellon University, Pittsburgh, PA, USA
More information about the openssh-unix-dev
mailing list