This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Problem with Russian Windows2000 Prof.


When mkpasswd enumerates users, it gets user names in Unicode (it should be
UCS-2, I forgot endianness used by Microsoft), at least for non-ASCII names.
Here is example of running mkpasswd on Win2k English with Russian locale set
and one account with Russian user name:

mw1g017@MW1G17C ~
$ mkpasswd.exe  -l
Everyone:*:0:0:,S-1-1-0::
SYSTEM:*:18:18:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Administrator::500:513:,S-1-5-21-790525478-1935655697-1957994488-500:/home/Adm
inistrator:/bin/sh
Guest::501:513:,S-1-5-21-790525478-1935655697-1957994488-501:/home/Guest:/bin/
sh
LookupAccountName(NULL,=>2K9 N75@) failed with error 1332

It does not work for user comments as well, but at least mkpasswd does not
bail out. You just get some trash in GECOS field.

Unfortunately, proper fix is not easy. The "fix proper" :-) would include
rewriting Cygwin to deal with Unicode (probbaly by using UTF-8 internally).
Less demanding task is rewriting mkpasswd and mkgroup to recognize Unicode and
convert to ANSI? code page (assuming that passwd functions are 8-bit clean).
But note, that it never was safe to put 8-bit values in /etc/passwd on any
Unix. Imagine, that you rsh another host - it may not like your Russian name
at all :)

In your particular case all that you need is actually SID for user you are
working under. There are utilities that can show this; sorry, do not have
links handy. Then you can put SID in /etc/profile manually. Or just create
user with ASCII name and admin rights and work as this user. Much easier.

-andrej

P.S. It was amusing at the times of NT4.0. There was no Russian NT server, so
such names as "Domain Admins" were of course always in original English. But
when you configured Russian Win95 to use domain security, it gave rights to
administer this system to Domain Admins spelled in RUSSIAN! It took me long
time to find out why I always get access denied ... so much about localisation
:)

> -----Original Message-----
> From: cygwin-owner@sources.redhat.com
> [mailto:cygwin-owner@sources.redhat.com]On Behalf Of Ivan Begtin
> Sent: Friday, January 05, 2001 8:49 PM
> To: cygwin@cygwin.com
> Subject: Problem with Russian Windows2000 Prof.
>
>
> I am using russian version of Windows 2000 Prof. My problem
> with using cygwin with it is that Administrator name is in
> Russian and cygwin think that I am not exists. I cannot use
> openssh that I require for example. Is it posssible to
> correct this problem?
>
> Get your free e-mail address at http://www.zmail.ru
>
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple
>
>


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]