delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/17/05:41:58

X-Spam-Check-By: sourceware.org
Date: Thu, 17 Aug 2006 11:41:45 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: user defined environment variabales problem
Message-ID: <20060817094145.GE20467@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <OF38A3C738 DOT 16F9EE7D-ONC12571CD DOT 00309870-C12571CD DOT 0034443D AT gom DOT com>
Mime-Version: 1.0
In-Reply-To: <OF38A3C738.16F9EE7D-ONC12571CD.00309870-C12571CD.0034443D@gom.com>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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 17 11:30, Andre Heider wrote:
> hi,
> 
> windows comes with the following defaults:
> 
> system wide environment variables "TMP" and "TEMP" set to the value 
> "%SYSTEMROOT%\Temp"
> user overwritten variables set to "%USERPROFILE%\Local Settings\Temp"
> 
> when logging on using rdp these values are correctly set by windows to the 
> user specific values. a cygwin shell withing this logon inherits these 
> values.
> 
> now, if i logon using opensshd installed as a cygwin service, these two 
> variables have the system wide value. as a fact, no user specific vars are 
> set.
> 
> is this case normal users dont have write access to "%SYSTEMROOT%\Temp" 
> (again, windows default). since these values are used for the api function 
> GetTempPath(A|W) some native win32 programs fail due to access denied 
> error.
> 
> shouldnt these values be set by cygwin (perhaps setuid?). or did i simply 
> configure something the wrong way?

That's a side effect of using pubkey authentication and
there's no way around it for the time being.  Set the variables manually
in your local profile and you're all set.


Corinna

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

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