This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Japanese Windows login name and SSH
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Ryan Shaw <ryan dot shaw at stanfordalumni dot org>
- Cc: cygwin at cygwin dot com
- Date: Sun, 27 Jul 2003 21:08:16 -0400 (EDT)
- Subject: Re: Japanese Windows login name and SSH
- Reply-to: cygwin at cygwin dot com
On Sun, 27 Jul 2003, Ryan Shaw wrote:
> Hello,
>
> My Windows XP login name is in Japanese: $B%i%$%"%s(B
>
> As this is not a legal UNIX username AFAIK, I have
> the following in /etc/profile:
>
> export USER="ryan"
> export HOME="/home/ryan"
>
> I also changed the relevant line in /etc/passwd
> from this:
>
> $B%i%$%"%s(B:unused_by_nt/2000/xp:1004:513
> :U-ICHIGO\$B%i%$%"%s(B,S-1-5-21-3595182962-3425862410-625958100-1004
> :/home/$B%i%$%"%s(B:/bin/bash
>
> to this:
>
> ryan:unused_by_nt/2000/xp:1004:513
> :U-ICHIGO\$B%i%$%"%s(B,S-1-5-21-3595182962-3425862410-625958100-1004
> :/home/ryan:/bin/bash
>
> Note that I changed the username and home, but left the
> U-ICHIGO\$B%i%$%"%s(B part before the SID untouched.
>
> My CYGWIN environment variable is set to "tty ntsec".
>
> This seems to be working OK, except that password-based
> authentication is not working when I connect to my Cygwin sshd.
> Publickey authentication DOES work, however.
>
> I was wondering if perhaps the Japanese string in the
> additional pw_gecos field is the cause of the problem
> with password authentication.
>
> Thanks for your help,
> Ryan
Well, if your U-ICHIGO\.... part is in Unicode, I can see why it would
confuse the passwd parsing routines (in particular, internal_getpwsid()),
which only deal with regular 1-byte characters. I'm not sure, though,
that changing the name part of the gecos field would make password
authentication work -- perhaps Pierre or Corinna would comment on this.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
--
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/