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 Message-Id: <5.0.2.1.0.20010323104347.0227cdf8@pop.atg.com> X-Sender: bbarber AT pop DOT atg DOT com X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Fri, 23 Mar 2001 10:51:18 -0500 To: Andy Helten , cygwin AT cygwin DOT com From: Brad Barber Subject: Re: whoami and id returns "administrator" instead of my userid In-Reply-To: <3ABA8F52.1066B23F@dot21rts.com> References: <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010322143628 DOT 00abffc0 AT pop DOT atg DOT com> <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010310182049 DOT 02975898 AT pop DOT atg DOT com> <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010310182049 DOT 02975898 AT pop DOT atg DOT com> <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010322143628 DOT 00abffc0 AT pop DOT atg DOT com> <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20010322181223 DOT 04623d88 AT pop DOT atg DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" It looks like my problem is due to an ambiguous configuration of my NT workstation. If I look at Computer Management :: System Tools :: Local Users and Groups :: Users I find Administrator atg Guest cygwin/mkpasswd is using these values KANE:/etc> mkpasswd -l Everyone:*:0:0:,S-1-1-0:: SYSTEM:*:18:18:,S-1-5-18:: Administrators:*:544:544:,S-1-5-32-544:: Administrator::500:513:,S-1-5-21-1606980848-1563985344-1708537768-500:/home/Administrator:/bin/sh atg::1000:513:atg,S-1-5-21-1606980848-1563985344-1708537768-1000:/home/atg:/bin/sh Guest::501:513:,S-1-5-21-1606980848-1563985344-1708537768-501:/home/Guest:/bin/sh It lookslike the NT is storing my network userid elsewhere. If I look at Control Panels :: System :: User Profiles it identifies my profile as ASTROCITY\bbarber Similarly Control Panels :: System :: Environment Variables identifies "User variables for bbarber" It appears to ignore the information in Computer Management :: System Tools :: Local Users and Groups :: Users and use the "profile" information instead. I don't know if this is a common enough problem to account for in cygwin. The end result is that "id" is "administrator" instead of "bbarber". KANE:/etc> id uid=500(administrator) gid=513(None) groups=513(None) --Brad At 06:48 PM Thursday 3/22/2001, Andy Helten wrote: >This worked for me: > >mkpasswd -l > /etc/passwd > >Also, see: > >http://cygwin.com/cygwin-ug-net/using-utils.html#MKPASSWD > >andy > > >Brad Barber wrote: > >> At 03:49 PM Thursday 3/22/2001, DJ Delorie wrote: >> >> >Edit /etc/passwd >> >> Will that mean that I need to "login" to cygwin? >> >> Any suggestions for /etc/password and .cshrc? The desired behavior is >> that clicking on the tcsh icon gives me a tcsh shell running as "bbarber" (my Windows >> 2000 userid). Currently it runs the shell as "administrator". >> >> --Brad "learning sysadmin" Barber >> >> ------------ >> Here are the current values. I wonder where it got "atg" and "Guest" from. >> I don't think I've registered anyone. I've never touched this file directly. >> >> KANE:/etc> cat passwd >> Everyone:*:0:0:,S-1-1-0:: >> SYSTEM:*:18:18:,S-1-5-18:: >> Administrators:*:544:544:,S-1-5-32-544:: >> Administrator::500:513:,S-1-5-21-1606980848-1563985344-1708537768-500:/home/Administrator:/bin/sh >> atg::1000:513:atg,S-1-5-21-1606980848-1563985344-1708537768-1000:/home/atg:/bin/sh >> Guest::501:513:,S-1-5-21-1606980848-1563985344-1708537768-501:/home/Guest:/bin/sh >> >> >You may have to close and re-open your cygwin windows, too. >> > >> >-- >> >Want to unsubscribe from this list? >> >Check out: http://cygwin.com/ml/#unsubscribe-simple >> >> -- >> Want to unsubscribe from this list? >> Check out: http://cygwin.com/ml/#unsubscribe-simple -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple