Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: "Gerrit P. Haase" <gerrit.haase@t-online.de>
Organization: Esse keine toten Tiere
To: Corinna Vinschen <cygwin@cygwin.com>
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.haase@t-online.de
CC: leafnode-list@wpxx02.toxi.uni-wuerzburg.de
Message-ID: <3AF34067.15782.1791CBF3@localhost>
In-reply-to: <20010504210204.I24200@cygbert.vinschen.de>
References: <3AF3048F.13957.1EEBA8D@localhost>; from gerrit.haase@t-online.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@t-dialin.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@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

