delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/25/09:09:18

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 25 May 2005 09:08:58 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: "ssh-host-config -y" w/CYGWIN set to ntsec..; ssh works but CYGWIN *not* set
In-Reply-To: <20050525081352.GB26571@calimero.vinschen.de>
Message-ID: <Pine.GSO.4.61.0505250907240.8541@slinky.cs.nyu.edu>
References: <200505250445 DOT j4P4jGmN029773 AT tigris DOT pounder DOT sol DOT net> <42940762 DOT 4FFDCE84 AT dessent DOT net> <429408C0 DOT 4070903 AT acm DOT org> <42940CC1 DOT 75E35408 AT dessent DOT net> <20050525081352 DOT GB26571 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0

On Wed, 25 May 2005, Corinna Vinschen wrote:

> 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.

I would've thought that CYGWIN is a core environment variable (not a
Windows one, of course).  I'm not sure, though, whether it would be
correct to propagate it -- one could argue either way...
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019