On 2012-02-01 21:27:43 +0100, Julien Cristau wrote:
> On Tue, Jan 31, 2012 at 15:46:28 +0100, Vincent Lefevre wrote:
> > Note: /etc/X11/Xsession.d/90x11-common_ssh-agent does some checks
> > e.g. by testing whether $SSH_AUTH_SOCK is set, but unfortunately it
> > is sourced before the user can get the control on the environment,
> > so that there is no good workaround.
> > 
> unset SSH_AUTH_SOCK in ~/.xsessionrc wouldn't work?

There are several problems with that. First, it should be done
conditionally with some heuristics, because SSH_AUTH_SOCK could
have been set in some other way, e.g. by a possible login shell
(if X was started from the command line). Another problem is that
"unset SSH_AUTH_SOCK" won't kill the agent, leaving a useless
process. "eval `ssh-agent -k`" is probably the correct command.
Also, in case of some future bug in ssh-agent, the X environment
might no longer be started because ssh-agent is the controlling
process instead of being a child of the session process; this
makes the system more sensitive to failures.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to