delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/27/00:30:01

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
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: mkpasswd and uid problem with domain accounts (16-bit wrapping?)
Date: Tue, 27 May 2003 14:29:32 +1000
Message-ID: <1395B4B334FCC143B36AF788E68B63811E3CE8@ausyms21.ca.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Reddie, Steven" <Steven DOT Reddie AT ca DOT com>
To: <cygwin AT cygwin DOT com>
X-OriginalArrivalTime: 27 May 2003 04:29:32.0545 (UTC) FILETIME=[92114710:01C32408]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h4R4U1W30855

Great, thanks for the info Igor.

-----Original Message-----
From: Igor Pechtchanski [mailto:pechtcha AT cs DOT nyu DOT edu] 
Sent: Tuesday, 27 May 2003 1:57 PM
To: Reddie, Steven
Cc: cygwin AT cygwin DOT com
Subject: Re: mkpasswd and uid problem with domain accounts (16-bit
wrapping?)


On Tue, 27 May 2003, Reddie, Steven wrote:

> I'm having problems with uid's which I think is due to 16-bit 
> wrapping. I was recently transferred to a different domain and so ran 
> "mkpasswd -d -u myusername newdomain" and got back an entry with a 
> uid=133500 due to the tailing end of the SID being 123500.  I added 
> this line to /etc/passwd.  My id get's reported as 2428 and it doesn't

> resolve to my username.  It seems that the value is wrapped to 
> 16-bits.  If I change the uid value in /etc/passwd to 2428 everything 
> seems to work.  I had some difficulty determining this at first and 
> was wondering if it's expected or a bug.  The domain that I am now on 
> would have well over 20,000 accounts and maybe far more, so this is 
> why the uid is calculated as such a high value.  Does anyone have any 
> further info?
>
> Regards,
> Steven

Steven,

This is exactly what happened; it's expected and is perfectly fine.
Cygwin UIDs are currently 16-bit.  Thankfully, you don't have to have
your Cygwin UID correspond in any way to your Windows SID -- it simply
has to be unique.  So, just change the UID to something (2428 works as
well as anything else, just make sure that you don't have another user
with this UID).  FYI, Cygwin 1.5 should have 32-bit UIDs.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his
route to the bathroom is a major career booster."  -- Patrick Naughton



--
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