delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/11/04:01:22

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 11 Aug 2010 10:01:07 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Missing APPDATA var in env of ssh sessions?
Message-ID: <20100811080107.GA26152@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4C6225D9 DOT 2060604 AT cwilson DOT fastmail DOT fm>
MIME-Version: 1.0
In-Reply-To: <4C6225D9.2060604@cwilson.fastmail.fm>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Aug 11 00:23, Charles Wilson wrote:
> Can ssh (or is it cygwin1.dll?) ensure that the user's APPDATA variable
> is populated, since it appears to be a pretty important var for Windows
> Vista+?

The child process started by sshd inherits its minimal environment from
its sshd server parent process.  The sshd server is running under
another account and so has another set of environment variables.  The
setuid() call does not change the environment.  There's no mechanism to
fetch a user-specific environment other than the officially supported
mechanisms as described in `man sshd' and `man sshd_config':

In `man sshd' see the LOGIN PROCESS and SSHRC sections, as well as the
AUTHORIZED_KEYS FILE FORMAT section.

In `man sshd_config' see the descriptions for AcceptEnv and
PermitUserEnvironment.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


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