delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/07/21:54:59

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Subject: Re: UID not correct - not getting domain's UID
Date: Wed, 07 Sep 2005 18:51:56 -0700
Lines: 41
Message-ID: <dfo5ft$e09$1@sea.gmane.org>
References: <dfo396$8d5$1 AT sea DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 63 DOT 0509072129480 DOT 11417 AT slinky DOT cs DOT nyu DOT edu>
Mime-Version: 1.0
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
In-Reply-To: <Pine.GSO.4.63.0509072129480.11417@slinky.cs.nyu.edu>
X-IsSubscribed: yes

Igor Pechtchanski wrote:

> On Wed, 7 Sep 2005, Andrew DeFaria wrote:
>
>> New contract, new employer, new problems. Now I know that I need to do
>> mkpasswd -l -d > /etc/passwd and mkgroup -l -d > /etc/group, etc.
>> However when I start a bash shell id returns:
>>
>> $ id
>> uid=400(adefaria) gid=401(Domain Users)
>> groups=544(Administrators),545(Users),38018(CTXSJCA),28526(dept-6700),10513(#Domain 
>> Users),401(Domain 
>> Users),37324(Exceed8),75030(IRV-bsehwdsl),66771(IRVA630XChina),66772(IRVA630XChinaBSE) 
>>
>>
>> Yet if I do:
>>
>> $ mkpasswd -d -u adefaria
>> ADEFARIA:unused_by_nt/2000/xp:100260:10513:Andrew 
>> DeFaria,U-BROADCOM\ADEFARIA,S-1-5-21-1039729616-1467765255-1947940980-90260:/home:/bin/bash 
>>
>>
>> As you can see my UID from the domain controler is 100260 and GID is 
>> 10513.
>> Why is id returning 400 and 401?
>
> I believe cygwin finds the first record in /etc/passwd that matches a 
> given username.  So try reordering them.  Same with /etc/group and 
> "Domain Users".  I don't recall whether the usernames are 
> case-sensitive -- so the all-caps on your domain username may be a red 
> herring.

Argh! You're right. Good catch. What happened is I was doing a mkpasswd 
-d > /etc/passwd and it appeared to be hanging. So I killed it and then 
did mkpasswd -d -u adefaria >> /etc/passwd. Unfortunately this put my 
entry at the end of the last partially written line! Thus I was not found!

I've corrected this. Thanks.

-- 
Why are they called apartments, when they're all stuck together?


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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