delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/09/10:32:42

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Envelope-Sender-Is: Andrej DOT Borsenkow AT mow DOT siemens DOT ru (at relayer david.siemens.de)
From: "Andrej Borsenkow" <Andrej DOT Borsenkow AT mow DOT siemens DOT ru>
To: "Ivan Begtin" <ivbegtin AT ru DOT ru>, <cygwin AT cygwin DOT com>
Subject: RE: Problem with Russian Windows2000 Prof.
Date: Tue, 9 Jan 2001 18:29:25 +0300
Message-ID: <001301c07a50$f2ee74e0$21c9ca95@mow.siemens.ru>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
In-reply-to: <web-5922827@backend2.aha.ru>
Importance: Normal

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 AT 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 AT sources DOT redhat DOT com
> [mailto:cygwin-owner AT sources DOT redhat DOT com]On Behalf Of Ivan Begtin
> Sent: Friday, January 05, 2001 8:49 PM
> To: cygwin AT cygwin DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019