Windows 2003

Corinna Vinschen
Fri Jul 11 11:45:00 GMT 2003

On Thu, Jul 10, 2003 at 05:05:55PM -0400, Pierre A. Humblet wrote:
> I just reread the CreateProcessAsUser page. We do a RevertToSelf, so
> we access the executable image in the security context of the caller.
> Accessing C:\cygwin\bin\bash.exe isn't the issue, the error message 
> must be about some other path...

I've just got it working with a non-SYSTEM user under which sshd is
running.  The problem was a still missing user privilege.  The user
starting sshd as service needs not only the "Create a token object"
but also the "Replace a process level token" privilege, otherwise
the CreateProcessAsUser fails.  After finding it it suddenly is clear
why it didn't work.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                      
Red Hat, Inc.

More information about the Cygwin-developers mailing list