delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/04/02/10:19:29

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <00d201be7d1c$1c7f8cb0$e63d2509@jonpryor.raleigh.ibm.com>
From: "Jonathan Pryor" <jonpryor AT vt DOT edu>
To: <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: DejaGnu
Date: Fri, 2 Apr 1999 10:18:13 -0500
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3

To get `whoami' to work correctly, you need:

    /etc/passwd

Under NT, you can generate this with cygwin-supplied tools:

    mkpasswd -l > /etc/passwd

This doesn't appear to work under 95 (95 doesn't support the
Win32 Security APIs), so I'm not sure what to do about Win9x...
(I copied over the files from my NT box, but I'm not sure what
to do if NT isn't available.)

 - Jon

-----Original Message-----
From: Larry Hall <lhall AT rfk DOT com>
To: N8TM AT aol DOT com <N8TM AT aol DOT com>; adam AT ideogram DOT com <adam AT ideogram DOT com>;
cygwin AT sourceware DOT cygnus DOT com <cygwin AT sourceware DOT cygnus DOT com>
Date: Friday, April 02, 1999 9:52 AM
Subject: Re: DejaGnu


>At 09:04 AM 4/2/99 EST, N8TM AT aol DOT com wrote:
>>In a message dated 4/2/99 2:08:20 AM Pacific Standard Time,
adam AT ideogram DOT com
>>writes:
>>
>>> bash-2.02$ whoami
>>>  whoami: cannot find username for UID 500
>>>  Can someone who has run DejaGnu on gcc give me some pointers?
>>As there is no whoami on cygwin, I simply edit that script to remove all
the
>>attempts to find a username, leaving only the fixed "unknown" assignment.
A
>>more general fix would be for the script to check whether whoami is
>>implemented before trying to invoke it.
>>
>
>Actually, I don't think the problem is that there is no "whoami" for Cygwin
>(I have one and I didn't build it myself!;-)).  I think Adam's problem is
>just a configuration one.  Actually, I forget the details of setting up
>whoami to work (even though I guess I did it at one point since it works
>fine for me!;-)) but I'm quite sure I remember it being discussed on the
list.
>One could always check the archives!;-)  In any case, as you pointed out,
>"fixing" whoami is not critical to solving Adam's current problem.
>
>
>Larry Hall                              lhall AT rfk DOT com
>RFK Partners, Inc.                      (781) 239-1053
>8 Grove Street                          (781) 239-1655 - FAX
>Wellesley, MA  02482-7797               http://www.rfk.com



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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