* id / mkpasswd
@ 2002-01-03 5:43 david.sannier
2002-01-03 15:32 ` Corinna Vinschen
0 siblings, 1 reply; 2+ messages in thread
From: david.sannier @ 2002-01-03 5:43 UTC (permalink / raw)
To: cygwin
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 ??
Thanks
David Sannier
----------------------------------------------------------------------
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 E TTC/min - 2,21 F TTC/min)
Minitel: 3615 NETCOURRIER (0,15 E TTC/min - 1,00 F TTC/min)
--
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: id / mkpasswd
2002-01-03 5:43 id / mkpasswd david.sannier
@ 2002-01-03 15:32 ` Corinna Vinschen
0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2002-01-03 15:32 UTC (permalink / raw)
To: cygwin
On Thu, Jan 03, 2002 at 02:43:38PM +0100, david.sannier@netcourrier.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@cygwin.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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-01-03 23:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-03 5:43 id / mkpasswd david.sannier
2002-01-03 15:32 ` Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).