delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/16/15:36:14

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Shankar Unni <shankarunni AT netscape DOT net>
Subject: Re: sshd-started sessions don't see system environment?
Date: Fri, 16 Mar 2007 13:33:49 -0700
Lines: 19
Message-ID: <eteuvc$70h$1@sea.gmane.org>
References: <et7b9l$8pu$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2pre) Gecko/20070116 Thunderbird/2.0b2 Mnenhy/0.7.5.666
In-Reply-To: <et7b9l$8pu$1@sea.gmane.org>
X-IsSubscribed: yes
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

Shankar Unni wrote on 2007-03-13:

> I have a very odd situation here on my Win2K3 box.
> 
> I have sshd set up, using privilege separation. I can log in as a local 
> user, but the environment I see is not the same as the environment I see 
> when I log in on the main desktop.

Ping? Has anyone else seen anything like this?

Is there any other information I could generate that would help debug this?

I know sshd (on Linux, etc.) tries really hard *not* to source any of 
the standard setup files like /etc/profile, etc., and quite probably 
also forces a standard environment on children it spawns.

Is this what is going on here, too?  Somehow the code ignores the system 
environment, and just copies some "well-known" subset of its environment 
to its children, or something?


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