[Bug 771] Add option to override XAUTHORITY env variable
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Sat Dec 13 18:57:36 EST 2003
http://bugzilla.mindrot.org/show_bug.cgi?id=771
------- Additional Comments From markus at openbsd.org 2003-12-13 00:57 -------
what about using the existing options:
$HOME/.ssh/rc
If this file exists, it is run with /bin/sh after reading the
en-
vironment files but before starting the user's shell or
command.
It must not produce any output on stdout; stderr must be used
in-
stead. If X11 forwarding is in use, it will receive the "proto
cookie" pair in its standard input (and DISPLAY in its environ-
ment). The script must call xauth(1) because sshd will not run
xauth automatically to add X11 cookies.
The primary purpose of this file is to run any initialization
routines which may be needed before the user's home directory
be-
comes accessible; AFS is a particular example of such an
environ-
ment.
This file will probably contain some initialization code
followed
by something similar to:
if read proto cookie && [ -n "$DISPLAY" ]; then
if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ];
then
# X11UseLocalhost=yes
echo add unix:`echo $DISPLAY |
cut -c11-` $proto $cookie
else
# X11UseLocalhost=no
echo add $DISPLAY $proto $cookie
fi | xauth -q -
fi
If this file does not exist, /etc/ssh/sshrc is run, and if that
does not exist either, xauth is used to add the cookie.
This file should be writable only by the user, and need not be
readable by anyone else.
/etc/ssh/sshrc
Like $HOME/.ssh/rc. This can be used to specify
machine-specific
login-time initializations globally. This file should be
writable only by root, and should be world-readable.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the openssh-bugs
mailing list