Subject: Re: (Fwd) CYGWIN=nontsec nontea ???
From: "Gerrit P. Haase" <[email-masked]>
To: Corinna Vinschen <[email-masked]>
Cc: [email-masked]
Date: Fri, 4 May 2001 23:51:03 +0200

Corinna Vinschen schrieb am 2001-05-04, 21:02:

> On Fri, May 04, 2001 at 07:35:43PM +0200, Gerrit P. Haase wrote:
> > 
> > That is dubios...
> > will it work if i set ntsec and ntea?
> > 
> > root@ISMENE ~
> > $ id
> > uid=500(root) gid=544(root) groups=544(root)
> > 
> > root@ISMENE ~
> > $ /usr/sbin/fetchnews -vvv
> > /usr/sbin/fetchnews: must be run as news or root
> > 
> > 
> > >From the source:
> > 
> >     setgid( pw->pw_gid );
> >     setuid( pw->pw_uid );
> >     if ( getuid() = pw->pw_uid || getgid() = pw->pw_gid ) {
>                    ^^^                      ^^^
> 		   These both shouldn't work here.
> 
> >         fprintf( stderr, "%s: must be run as news or root\n", progname );
> >         return FALSE;
> >     }
> > 
> > Is getuid or getgid not working on cygwin?
> 
> Nope, it's setuid which can't change the user context without
> a password. Result: The uid isn't changed...
> 
> Did you read the ntsec chapter in the users guide?

Yes, after these problems this evening, i read through...
I'll try to comment it out for the first time,

thank you again.

gph

-- 
=^..^=

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple