delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/29/18:57:23

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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.20010329115654.02454358@pop.atg.com>
X-Sender: bbarber AT pop DOT atg DOT com
X-Mailer: QUALCOMM Windows Eudora Version 5.0.2
Date: Thu, 29 Mar 2001 12:00:55 -0500
To: David Postill <David DOT Postill AT workthing DOT com>, cygwin AT cygwin DOT com
From: Brad Barber <bradb AT atg DOT com>
Subject: RE: whoami and id returns "administrator" instead of my userid
In-Reply-To: <6EC0D4799007D5119E9F00508B6B515818D72A@lon-a-1035-sr.wow>
Mime-Version: 1.0

>Use mkpasswd -d > /etc/passwd instead.

David,

I set /etc/passwd to
        mkpasswd -d  | grep bbarber >/etc/passwd

It worked

KANE:/usr/bin> id
uid=1985(bbarber) gid=3135(Administrators)

Previously I tried adding 'bbarber' to NT's Local users list.  That did not change
        mkpasswd -l
probably because I didn't assign 'bbarber' to the 'Administrators' group.

Thanks for your help.
                                                                --Brad
                                        

At 07:54 AM Thursday 3/29/2001, David Postill wrote:
>| -----Original Message-----
>| From: Brad Barber [mailto:bradb AT atg DOT com]
>| Sent: Friday, March 23, 2001 3:51 PM
>| To: Andy Helten; cygwin AT cygwin DOT com
>| Subject: Re: whoami and id returns "administrator" instead of 
>| my userid
>| 
>| 
>| 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-1708537
>| 768-500:/home/Administrator:/bin/sh
>| atg::1000:513:atg,S-1-5-21-1606980848-1563985344-1708537768-10
>| 00:/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.  
>
><snip>
>
>| >mkpasswd -l > /etc/passwd
>
>Use mkpasswd -d > /etc/passwd instead.
>
>------------------------------------------------------------------------ 
>Privileged or confidential information may be contained in this message or
>its attachments. 
>
>If you are the addressee of this message and you would prefer not to 
>receive e-mails from workthing at this address please notify the sender by
>return. 
>
>If you are not the addressee indicated in this message (or responsible for
>delivery of the message to the addressee), you may not copy this message
>or deliver it to anyone other than the addressee. In such case,
>please delete this message and notify the sender by reply email.
>Please take all appropriate steps to check any attachments to this message
>for viruses or other damaging code. 
>
>
>Workthing Limited 
>Registered in England and Wales 
>Registered Number: 3873867 
>Registered Office: 164 Deansgate, Manchester, M60 2RR 


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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