delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/21/11:02:21

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 21 Jan 2002 17:01:15 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: security.cc: bug report, question and suggestion
Message-ID: <20020121170115.N11608@cygbert.vinschen.de>
Mail-Followup-To: cygwin <cygwin AT cygwin DOT com>
References: <3 DOT 0 DOT 5 DOT 32 DOT 20020120225521 DOT 007e14b0 AT pop DOT ne DOT mediaone DOT net> <3C4C3662 DOT EBC091A AT ieee DOT org>
Mime-Version: 1.0
In-Reply-To: <3C4C3662.EBC091A@ieee.org>
User-Agent: Mutt/1.3.22.1i

On Mon, Jan 21, 2002 at 10:40:18AM -0500, Pierre A. Humblet wrote:
> "Corinna Vinschen" wrote:
> > 
> > On Fri, Jan 18, 2002 at 07:46:03PM -0500, Pierre A. Humblet wrote:
> 
> > > Entry in passwd (note Cygwin name != Windows name)
> > > exim:unused_by_nt/2000/xp:1002:1005:daemon,U-PHumblet\Mail,S-1-5-21-21273915
> > > 03-1594901184-99485923-1002:/h
> > > ome/Mail:/bin/bash
> > >
> > > /> cygrunsrv -I test -u mail -e CYGWIN=ntsec -p /a.exe
> > > Enter password of user `.\mail':
> > > Reenter, please:
> > > /> cygrunsrv -S test
> > > /> head /var/log/test.log
> > > CYGWIN = ntsec USERNAME = UNDEF UID = 500 GID = 513 PID = 619  <==INCORRECT UID/GID
> > 
> > Operator error.  -u expects the Cygwin user name, not the Windows
> > user name (it's a Cygwin application...).  The wrong UID is caused
> > by your aforementioned observation that the getpwuid/getgrgid
> > functions always return a default value :-(
> 
> Corinna, I just checked on NT. cygrunsrv accepts Cygwin and Windows
> user names equally well and produces an incorrect UID if they differ.

Would you mind to track that down further.  I'd suspect something's
wrong in Cygwin, probably in internal_getlogin() ?!?

Corinna

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

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019