[GE users] qlogin and sshd errors (and JOB_ID qlogin environment)

Sean Dilda agrajag at dragaera.net
Wed Nov 2 15:02:17 GMT 2005

    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

Sacerdoti, Federico wrote:
> Actually, I found the problem: I am using qlogin over ssh, and the sshd
> ignores all environment variables when it starts. Basically sge-shepherd
> does set the correct evironment, but they don't make it to the final
> session.
> The work around is to use an sshd wrapper. This strategy hijacks the
> $HOME/.ssh/environment facility:
> ---
> #!/bin/sh
> # Author: D.E.Shaw R&D LLC, F.D.Sacerdoti 2005
> #
> # SSHD will erase the helpful env vars that sge puts in. This forces
> # them to survive, but we usurp the $HOME/.ssh/environment file.
> #
> env > $HOME/.ssh/environment
> $HOME/.ssh/environment
> /usr/sbin/sshd -i -b 512 -o 'AcceptEnv *' -o 'PermitUserEnvironment yes'
> rm -f $HOME/.ssh/environment
> ---

This has a horrible race condition if you have shared home directories 
and someone does simultaneous qlogins.  Also, if they just do 
simultaneous qlogin's to the same host.

To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net

More information about the gridengine-users mailing list