delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/03/18:32:53

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
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 4 Jan 2002 00:32:11 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: id / mkpasswd
Message-ID: <20020104003211.M27340@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <mnet1 DOT 1010065418 DOT 25570 DOT david DOT sannier AT netcourrier DOT com>
Mime-Version: 1.0
In-Reply-To: <mnet1.1010065418.25570.david.sannier@netcourrier.com>
User-Agent: Mutt/1.3.22.1i

On Thu, Jan 03, 2002 at 02:43:38PM +0100, david DOT sannier AT netcourrier DOT com wrote:
>   Hi,
> 
> 
> I've installed cygwin on W2K.
> My account is not local, so I've added it with
> `mkpasswd -u <username> -d <domain> >> /etc/passwd`
> This seems to work well : it adds the line
> with a user id of 109369 (=0x1AB39)
> The first time I launched a bash, "I have no name!"
> (not exactly what I expected)
> So...  What does the id command print ??
> -> an uid of 43833 (Now you understand why
> I wrote the previous id in hexa) The hex
> value of 43833 is 0xAB39... 
> 
> I've corrected my /etc/passwd replace the
> uid by its [short] version -> works well,
> but... It doesn't seem to be a normal behavior !?
> 
> Is this already known ? Has someone an explanation ? 
> Is it just a storage prb of the user id or is it
> mkpasswd that does not properly deal with the sid ?
> Did I simply make a mistake ??

Nope.  The datatype uid_t is equivalent to unsigned short (16bit).
The mkpasswd tool doesn't take that into account when generating
the uids, unfortunately.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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