This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: user defined environment variabales problem


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]