This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: NFS server (final?)
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.