delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/27/10:33:10

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-Id: <5.1.0.14.2.20020727071329.02d11600@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Sat, 27 Jul 2002 07:34:20 -0700
To: cygwin AT cygwin DOT com, cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: W2K and sshd, ssh - asks for password
In-Reply-To: <20020727105641.N3921@cygbert.vinschen.de>
References: <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020726182759 DOT 01f8f700 AT pop3 DOT cris DOT com>
<VA DOT 00000c0e DOT 002c0d59 AT thesoftwaresource DOT com>
<20020724163138 DOT F3921 AT cygbert DOT vinschen DOT de>
<VA DOT 00000c10 DOT 00aec8ba AT thesoftwaresource DOT com>
<20020724201757 DOT GC21112 AT redhat DOT com>
<VA DOT 00000c11 DOT 0214eedd AT thesoftwaresource DOT com>
<00da01c2336a$b940b210$0100a8c0 AT wdg DOT uk DOT ibm DOT com>
<20020725112023 DOT B14134 AT cygbert DOT vinschen DOT de>
<VA DOT 00000c2a DOT 004a6713 AT thesoftwaresource DOT com>
<5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020726182759 DOT 01f8f700 AT pop3 DOT cris DOT com>
Mime-Version: 1.0

Max, Corinna,

First, Max, I'm sorry for the misinformation.

Second, Corinna, thanks for the correction.

Does this imply that the CYGWIN variable is consulted upon every "exec" 
system call to decide whether the ensuing program executes with "ntsec" in 
effect? I assume the check would not occur during a "fork" call.

By the way, I can have both a "tty" and a non-"tty" shell running 
concurrently, so it must be a process-by-process (checked on fork) or a 
program-by-program (checked on exec) characteristic.

The CYGWIN environment variable page of the Cygwin User Guide 
(<http://www.cygwin.com/cygwin-ug-net/using-cygwinenv.html> does not 
mention when the CYGWIN variable is consulted for the setting of the 
various options. Nor, as far as I can tell, does the "ntsec" page 
(<http://www.cygwin.com/cygwin-ug-net/ntsec.html>).


Randall Schulz
Mountain View, CA USA


At 01:56 2002-07-27, Corinna Vinschen wrote:
>On Fri, Jul 26, 2002 at 06:32:59PM -0700, Randall R Schulz wrote:
> > You should be aware that certain keywords in the CYGWIN variable, among
> > them "ntsec," are only examined when the Cygwin1.dll initially loads 
> (i.e.,
> > every time a Cygwin application starts up and the Cygwin1.dll shared
> > library was not already loaded; that can occur any number of times between
> > reboots or logins).
> >
> > In particular this means that no Cygwin code or script can meaningfully 
> set
> > the "ntsec" keyword in the CYGWIN variable--it must be supplied by the
> > Windows environment. The usual way of doing this is to use the System
> > control panel's Environment setting function.
>
>That's not right.  It only holds for some of the CYGWIN settings as
>tty vs. notty which would be somewhat problematic.  E. g. a nontsec
>application can start a ntsec app and vice versa.
>
>Corinna


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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