Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: "Gerrit P. Haase" Organization: Esse keine toten Tiere To: Corinna Vinschen Date: Fri, 4 May 2001 23:51:03 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: (Fwd) CYGWIN=nontsec nontea ??? Reply-to: gerrit DOT haase AT t-online DOT de CC: leafnode-list AT wpxx02 DOT toxi DOT uni-wuerzburg DOT de Message-ID: <3AF34067.15782.1791CBF3@localhost> In-reply-to: <20010504210204.I24200@cygbert.vinschen.de> References: <3AF3048F DOT 13957 DOT 1EEBA8D AT localhost>; from gerrit DOT haase AT t-online DOT de on Fri, May 04, 2001 at 07:35:43PM +0200 X-mailer: Pegasus Mail for Win32 (v3.12cDE) X-Hops: 1 X-Sender: 320081107336-0001 AT t-dialin DOT net 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 AT ISMENE ~ > > $ id > > uid=500(root) gid=544(root) groups=544(root) > > > > root AT 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