Corinna or Pierre please comment? [ Re: setuid

Corinna Vinschen
Tue Jul 23 07:18:00 GMT 2002

On Tue, Jul 23, 2002 at 09:53:02AM -0400, Pierre A. Humblet wrote:
> Corinna Vinschen wrote:
> > So we still have a problem, even if the DC is accessible.  We could
> > solve that by not failing silently if the get_user_groups() function
>                 *** <= you don't mean that!

Did I mess up the sentence?  Currently the code has this new comment
"/* Fail silently if DC is not reachable */".  This must not happen.

> What I don't understand is how mkpasswd/group work in that case (do they work?). 
> See NetUserEnum
> If they don't, how does one enter the relevant sids in /etc/passwd 
> and group? That's really where I got stuck at work. I never got to
> the point where I could setuid, because I can't get the sids.  

It's not that problem, AFAICS.  It's pretty clear in that environment
that the passwd and group entries have to be generated by either a
privileged user or by the sysadmin directly on the DC.  So there is
a way to generate these files, it's just not possible for everyone
on each machine.


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

More information about the Cygwin-patches mailing list