NFS server (final?)

Corinna Vinschen vinschen@redhat.com
Thu Feb 13 16:20:00 GMT 2003


On Wed, Feb 12, 2003 at 04:02:48PM -0500, Robb, Sam wrote:
> > Only if you changed the uid of the Administrator account to 0 by hand.
>  
> I have *not* done anything on my system to add a root user or any user
> with uid 0; and yet, seteuid(0) apparently succeeds.

Could you post your /etc/passwd?  I'm curious.

> What's the recommended way of dealing with this?  The code in the server
> does something along the lines of:
> 
> 	seteuid(ROOT_UID)
> 	setegid(gid)
> 	setgroups(len, gids)
> 	seteuid(uid)
> 
> (Error checking obviously ignored.)  From what I can tell in the Cygwin
> docs, the seteuid(ROOT_UID) call shouldn't be neccesary:

That's right.  I'd suggest you suggest running it under SYSTEM account.
E. g. cron relies on that, too.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.



More information about the Cygwin-apps mailing list