patch 3: sshd

Corinna Vinschen
Tue Nov 12 08:32:00 GMT 2002

On Wed, 06 Nov 2002 11:36:31 -0500, Pierre A. Humblet wrote:
> Currently setuid on Win95/98/ME always returns success
> but does not change the uid. That confuses some programs
> that verify if the setuid has really succeeded.
> It is literally a two line change in Cygwin to fix
> that, but unfortunately changing uids breaks sshd
> on Win95/98/ME.

Can we really do this?  Doesn't that potentially break something?

> P.S.: There is an opposite problem in login. It doesn't
> check if the setuid succeeds. If it fails (e.g. because
> the sid is missing in /etc/passwd), login goes ahead
> and starts the shell anyway. The user then finds herself
> running as SYSTEM.

Thanks, I'm going to apply a patch.


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

More information about the Cygwin-patches mailing list