Discussion:
User ID Problem: "I have no name!"
steve johnston
2003-04-11 22:49:21 UTC
Permalink
After installing Cygwin on XP (when logged into XP as a user in the admin
group) and then starting Cygwin I see the following:


id: cannot find name for user ID 28510
I have no name!@WAL11112813 ~

-------------------
Here's /etc/passwd:


$ more /etc/passwd
SYSTEM:*:18:544:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Administrator:unused_by_nt/2000/xp:500:513:U-WAL111128
914090876-4025279379-689279713-500:/home/Administrator
Guest:unused_by_nt/2000/xp:501:513:U-WAL11112813\Guest
9379-689279713-501:/home/Guest:/bin/bash
HelpAssistant:unused_by_nt/2000/xp:1004:513:Remote Des
t,U-WAL11112813\HelpAssistant,S-1-5-21-914090876-40252
/HelpAssistant:/bin/bash
SUPPORT_388945a0:unused_by_nt/2000/xp:1002:513:CN=Micr
d,S=Washington,C=US,U-WAL11112813\SUPPORT_388945a0,S-1
-689279713-1002:/home/SUPPORT_388945a0:/bin/bash
tmersrvd:unused_by_nt/2000/xp:1005:513:tmersrvd,U-WAL1
914090876-4025279379-689279713-1005:/home/tmersrvd:/bi
sjohnsto:unused_by_nt/2000/xp:225118:10513:sjohnsto,U-
-2014530826-1978751852-262303683-215118:/cygdrive/h:/


---------------------------------
Can't login as my windows Userid:

I have no name!@WAL11112813 ~
$ Login
login: sjohnsto
Password:
Switching to user sjohnsto failed!

I have no name!@WAL11112813 ~
$

Any suggestions?

Thanks, Steve
Igor Pechtchanski
2003-04-11 22:56:19 UTC
Permalink
Post by steve johnston
After installing Cygwin on XP (when logged into XP as a user in the admin
id: cannot find name for user ID 28510
-------------------
$ more /etc/passwd
Administrator:unused_by_nt/2000/xp:500:513:U-WAL111128914090876-4025279379-689279713-500:/home/Administrator
Guest:unused_by_nt/2000/xp:501:513:U-WAL11112813\Guest9379-689279713-501:/home/Guest:/bin/bash
HelpAssistant:unused_by_nt/2000/xp:1004:513:Remote Dest,U-WAL11112813\HelpAssistant,S-1-5-21-914090876-40252/HelpAssistant:/bin/bash
SUPPORT_388945a0:unused_by_nt/2000/xp:1002:513:CN=Micrd,S=Washington,C=US,U-WAL11112813\SUPPORT_388945a0,S-1-689279713-1002:/home/SUPPORT_388945a0:/bin/bash
tmersrvd:unused_by_nt/2000/xp:1005:513:tmersrvd,U-WAL1914090876-4025279379-689279713-1005:/home/tmersrvd:/bi
sjohnsto:unused_by_nt/2000/xp:225118:10513:sjohnsto,U--2014530826-1978751852-262303683-215118:/cygdrive/h:/
---------------------------------
$ Login
login: sjohnsto
Switching to user sjohnsto failed!
$
Any suggestions?
Thanks, Steve
AFAIK, Cygwin doesn't currently support UIDs of more than 16-bit. Edit
/etc/passwd and change your user id (third ":"-separated field) to
something less than 65535. Make sure you don't touch any other part of
the entry.

Also, you will not be able to use "login" to switch user context. See
<http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-SETUID>.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ ***@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ ***@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!

Knowledge is an unending adventure at the edge of uncertainty.
-- Leto II
steve johnston
2003-04-14 17:20:50 UTC
Permalink
Thanks! This worked. I modified the third field in the last line in
/etc/password (below) from ":225118:" to ":25118:" & no longer see the
error message.
Post by Igor Pechtchanski
Post by steve johnston
After installing Cygwin on XP (when logged into XP as a user in the admin
id: cannot find name for user ID 28510
-------------------
$ more /etc/passwd
Administrator:unused_by_nt/2000/xp:500:513:U-WAL111128914090876-4025279379-689279713-500:/home/Administrator
Guest:unused_by_nt/2000/xp:501:513:U-WAL11112813\Guest9379-689279713-501:/home/Guest:/bin/bash
HelpAssistant:unused_by_nt/2000/xp:1004:513:Remote Dest,U-WAL11112813\HelpAssistant,S-1-5-21-914090876-40252/HelpAssistant:/bin/bash
SUPPORT_388945a0:unused_by_nt/2000/xp:1002:513:CN=Micrd,S=Washington,C=US,U-WAL11112813\SUPPORT_388945a0,S-1-689279713-1002:/home/SUPPORT_388945a0:/bin/bash
tmersrvd:unused_by_nt/2000/xp:1005:513:tmersrvd,U-WAL1914090876-4025279379-689279713-1005:/home/tmersrvd:/bi
sjohnsto:unused_by_nt/2000/xp:225118:10513:sjohnsto,U--2014530826-1978751852-262303683-215118:/cygdrive/h:/
---------------------------------
$ Login
login: sjohnsto
Switching to user sjohnsto failed!
$
Any suggestions?
Thanks, Steve
AFAIK, Cygwin doesn't currently support UIDs of more than 16-bit. Edit
/etc/passwd and change your user id (third ":"-separated field) to
something less than 65535. Make sure you don't touch any other part of
the entry.
Also, you will not be able to use "login" to switch user context. See
<http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-SETUID>.
Igor
Dmitriy Kargapolov
2003-04-12 14:47:49 UTC
Permalink
Hi All,
Looks like true, Igor.

I had id 86015
86015 % 65536 = 20479
my cygwin was complaining about "unknown user 20479"

Steve has id 225118,
225118 % 65536 = 28510

I guess his "unknown id" is 28510

Cygwin cuts id to fit 16-bit...

Thank you a lot Igor!

-----Original Message-----
From: cygwin-***@cygwin.com [mailto:cygwin-***@cygwin.com] On Behalf
Of Igor Pechtchanski
Sent: Friday, April 11, 2003 5:56 PM
To: steve johnston
Cc: ***@cygwin.com
Subject: Re: User ID Problem: "I have no name!"
Post by steve johnston
After installing Cygwin on XP (when logged into XP as a user in the
admin
Post by steve johnston
id: cannot find name for user ID 28510
-------------------
$ more /etc/passwd
Administrator:unused_by_nt/2000/xp:500:513:U-WAL111128914090876-40252793
79-689279713-500:/home/Administrator
Guest:unused_by_nt/2000/xp:501:513:U-WAL11112813\Guest9379-689279713-501
:/home/Guest:/bin/bash
Post by steve johnston
HelpAssistant:unused_by_nt/2000/xp:1004:513:Remote
Dest,U-WAL11112813\HelpAssistant,S-1-5-21-914090876-40252/HelpAssistant:
/bin/bash
SUPPORT_388945a0:unused_by_nt/2000/xp:1002:513:CN=Micrd,S=Washington,C=U
S,U-WAL11112813\SUPPORT_388945a0,S-1-689279713-1002:/home/SUPPORT_388945
a0:/bin/bash
tmersrvd:unused_by_nt/2000/xp:1005:513:tmersrvd,U-WAL1914090876-40252793
79-689279713-1005:/home/tmersrvd:/bi
sjohnsto:unused_by_nt/2000/xp:225118:10513:sjohnsto,U--2014530826-197875
1852-262303683-215118:/cygdrive/h:/
Post by steve johnston
---------------------------------
$ Login
login: sjohnsto
Switching to user sjohnsto failed!
$
Any suggestions?
Thanks, Steve
AFAIK, Cygwin doesn't currently support UIDs of more than 16-bit. Edit
/etc/passwd and change your user id (third ":"-separated field) to
something less than 65535. Make sure you don't touch any other part of
the entry.

Also, you will not be able to use "login" to switch user context. See
<http://cygwin.com/cygwin-ug-net/ntsec.html#NTSEC-SETUID>.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ ***@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ ***@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!

Knowledge is an unending adventure at the edge of uncertainty.
-- Leto II


--
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/
Loading...