Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Wed, 25 May 2005 10:13:52 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: "ssh-host-config -y" w/CYGWIN set to ntsec..; ssh works but   CYGWIN    *not* set
Message-ID: <20050525081352.GB26571@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <200505250445.j4P4jGmN029773@tigris.pounder.sol.net> <42940762.4FFDCE84@dessent.net> <429408C0.4070903@acm.org> <42940CC1.75E35408@dessent.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <42940CC1.75E35408@dessent.net>
User-Agent: Mutt/1.4.2i

On May 24 22:27, Brian Dessent wrote:
> David Rothenberger wrote:
> 
> > I have CYGWIN set in my sshd service and globally to "server", but when
> > I ssh to my machine, CYGWIN is empty:
> > 
> > % echo $CYGWIN
> > server
> > % ssh localhost
> > Last login: Wed May  4 20:20:04 2005 from localhost
> > % echo $CYGWIN
> 
> Hmm, weird.  I see the same thing here too.  Not sure if it was always
> this way or a recent change in the DLL / cygrunsrv / sshd.

It's by design of sshd, right now.  Even though cygrunsrv propagates
this environment to the child applications, sshd doesn't.

This is a change to sshd which had been requested upstream.  The main
developers felt that propagating all SYSTEM environment to the
unprivileged child applications has to be treated as unsecure.
Therefore I implemented to propagate only the core Windows environment
to child processes back in 3.9, AFAIR.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

