Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Content-Type: text/plain; charset="us-ascii" Subject: mkpasswd and uid problem with domain accounts (16-bit wrapping?) Date: Tue, 27 May 2003 13:35:30 +1000 Message-ID: <1395B4B334FCC143B36AF788E68B63811E3BE9@ausyms21.ca.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Reddie, Steven" To: X-OriginalArrivalTime: 27 May 2003 03:35:30.0415 (UTC) FILETIME=[059B7FF0:01C32401] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h4R3ZpQ13759 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 Reddie Development Leader - eTrust ETPKI Computer Associates Pty Ltd (Australia) -- 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/