This is the mail archive of the
mailing list for the Cygwin project.
Re: Windows environment variables in ssh sessions with privilege seperation
Adding the environment variables to HKEY_LOCAL_MACHINE\SYSTEM
\CurrentControlSet\Services\sshd\Parameters\Environment does not seem to
have an effect outside of the CYGWIN variable which does in fact change
after editing the registry. This provided me with some verification that
I had in fact been carrying out my experimentation on the appropriate
>From an ssh sessions here's a sample of the contents of the environment
reg query "HKLM\system\currentcontrolset\services\sshd\parameters
! REG.EXE VERSION 3.0
CYGWIN REG_SZ ntsec tty binmode smbntsec
PERLDB_OPTS REG_SZ RemotePort=127.0.0.1:2000
set | grep -i perldb
after restarting sshd or rebooting yields nothing.
Is it possible that these are getting set in the environment of the
service user but not exported to the shell of the impersonated user? Can
someone shed some more light perhaps on some of the inner workings of
the impersonation mechanism that may help describe my results?
On Wed, 2006-11-15 at 23:25 +0000, DePriest, Jason R. wrote:
> You can however add the environment variables you want to the Windows
> registry directly.
> Basically, look in HKLM\SYSTEM\CurrentControlSet\Services\<ssh
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html