delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/24/12:12:11

X-Spam-Check-By: sourceware.org
Date: Mon, 24 Apr 2006 17:11:45 +0100
From: Owen Rees <owen DOT rees AT hp DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: useradd & user ids
Message-ID: <92CAA5F86D359B76AD557FAB@rees-o-3.labs.hpl.hp.com>
In-Reply-To: <20060424145044.GE28583@calimero.vinschen.de>
References: <4447CD75 DOT 9030505 AT elementcxi DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0604201523160 DOT 10467 AT access1 DOT cims DOT nyu DOT edu> <44481791 DOT 6000902 AT elementcxi DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0604210111260 DOT 7174 AT access1 DOT cims DOT nyu DOT edu> <20060421094115 DOT GB12661 AT calimero DOT vinschen DOT de> <Pine DOT GSO DOT 4 DOT 63 DOT 0604211109320 DOT 26305 AT access1 DOT cims DOT nyu DOT edu> <20060421151856 DOT GB23157 AT calimero DOT vinschen DOT de> <D93009657DB6C48C2A8E6BF7 AT rees-o-3 DOT labs DOT hpl DOT hp DOT com> <20060424145044 DOT GE28583 AT calimero DOT vinschen DOT de>
X-Mailer: Mulberry/4.0.4 (Win32)
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

--On 24 April 2006 16:50 +0200 Corinna Vinschen wrote:

>> but 'mkpasswd -l -c' offers me an
>> entry with a uid that is my 6-digit RID plus 10000.
>
> The -c option always adds the default offset.  It's not intended for
> local accounts anyway.

It's not just -c that adds the 10000:

  mkpasswd.exe -d $USERDOMAIN -u $USERNAME

also gives a uid that is RID+10000.

The ntsec page mentions using mkpasswd and mkgroup but does not explain how 
the uid or gid is chosen. I think my comment was prompted by the mention of 
numbers of 4 digits earlier in this thread. Having a 6-digit RID for my 
domain account I can see that the uid generation does straightforward 
arithmetic and not some sort of string processing. (Is it really 19106 this 
year? Some people wrote code that thinks so.)


-- 
Owen Rees
Hewlett Packard Laboratories, Bristol, UK



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