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 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 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline 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 Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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