delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/16/10:17:17

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=oWTZU2Pj19tAfyNDQXm9t7/Mv0Pp1ElJrMGAkQaLKciQealslZse/
v47PFSWdENc2Xoz8t4+aDPOUH/iDFqQF+lq52ycnI6/zwAFiSMdfa32O/jpdV0Nd
KWeW/Orxe1GgGDTYSeP9TJPHK4WZlCDrJia11d5MbYeDG5unxBrBX0=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=k771fapBl0IBkDJ2ne+QFbfdPNk=; b=H2L1E7nkk034LksKI6reA5RrN+2W
mFQdY5vgDYWtS2Z3chyFZmwMmtGUI7I6nHe7Z4ZFhjHtxMYEAkQ0OvUsp88NrIi2
Bw+lZOtqMQksZniDhAM05H3oDQ8K+KAeNmdUYi72zhgy2zffI/ZnX92tax6tXvH0
41jfM5CiN3nf/BI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_50,BODY_8BITS,GARBLED_BODY,KAM_INFOUSME autolearn=no version=3.3.2
X-HELO: calimero.vinschen.de
Date: Sun, 16 Feb 2014 16:16:58 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: New passwd/group handling in Cygwin - test results and observations
Message-ID: <20140216151658.GU2246@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20140213143849 DOT GH2246 AT calimero DOT vinschen DOT de> <1717869165 DOT 20140214021113 AT mtu-net DOT ru> <20140214102044 DOT GX2246 AT calimero DOT vinschen DOT de> <1078913914 DOT 20140214155631 AT mtu-net DOT ru> <20140214140532 DOT GD2246 AT calimero DOT vinschen DOT de> <1184152333 DOT 20140216175202 AT yandex DOT ru> <20140216143448 DOT GR2246 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20140216143448.GR2246@calimero.vinschen.de>
User-Agent: Mutt/1.5.21 (2010-09-15)

--ReoOxgzMK1Uj1WV+
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Feb 16 15:34, Corinna Vinschen wrote:
> On Feb 16 17:52, Andrey Repin wrote:
> > > Sorry, I can't provide an easy solution, and afaik this is documented.
> >=20
> > I don't know, how it did not hit my head earlier, but now that I think =
about
> > it...
> > The fact `ls' does not print correct group names, but correctly transla=
te
> > dates... eww, wait. There's something bad happens under the hood.
> >=20
> > Please check this image: http://img513.imageshack.us/img513/43/jn7n.png
> > LANG is set (pre-set, before Cygwin tree start) to ru_RU.UTF-8 for mint=
ty and
> > ru_RU.CP866 for console.
> > As you can see, existing group (i.e. - "Administrators") is properly
> > translated to chosen locale, which is not the case for group "=D0=9E=D1=
=82=D1=81=D1=83=D1=82=D1=81=D1=82=D0=B2=D1=83=D0=B5=D1=82".
> >=20
> > The SID of the group "DAEMON2\=D0=9E=D1=82=D1=81=D1=83=D1=82=D1=81=D1=
=82=D0=B2=D1=83=D0=B5=D1=82" is S-1-5-21-1801674531-1644491937-1606980848-5=
13
> >=20
> > Cygwin show it as
> > -rwxr-xr-x    1 197612 197121    45597 =D0=BC=D0=B0=D1=80 22  2013 xarg=
s.exe
> >=20
> > which matching your description for "Accounts from the local machine's =
user DB
> > (SAM)" (0x30000+513 =3D197121) (and yes, the leading part of the SID is=
 matching
> > the one of the other users on this system), but the group is missing fr=
om
> > `wmic GROUP LIST' output. I presume, it was deleted at one point, or it=
 is
> > remnants of the previous OS installation, transferred over with the dis=
k to
> > this system. Either case explains the name of the group - "Missing" or
> > "Nonexistent". Means, it's name does not exist in current SAM database.
>=20
> No, it's the local group with the RID 513, which exists on *all*
> machines, but is invisible, unless you call NetUserEnum, which
> enumerates it, or you call NetUserGetInfo with the localized name.
>=20
> This group is called "None" in the english OS versions, "Kein" in
> the german version, "Aucun" in the french version, etc.  All local
> users accounts have this group invariably set as their primary group.
>=20
> For some reason Microsoft decided ages ago, that this group does
> not show up in the GUI, and that it's not possible to change the primary
> group outside of domains.  Why that is, I have no idea.

Maybe I have a simple solution.  From your other mails I gather you
suceeded building your own Cygwin DLL.

If you apply this patch:

Index: dcrt0.cc
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/src/src/winsup/cygwin/dcrt0.cc,v
retrieving revision 1.453
diff -u -p -r1.453 dcrt0.cc
--- dcrt0.cc	10 Feb 2014 10:45:50 -0000	1.453
+++ dcrt0.cc	16 Feb 2014 15:15:44 -0000
@@ -929,14 +929,14 @@ dll_crt0_1 (void *)
   /* Allocate cygheap->fdtab */
   dtable_init ();
=20
+  /* Set internal locale to the environment settings. */
+  initial_setlocale ();
+
   uinfo_init ();	/* initialize user info */
=20
   /* Connect to tty. */
   tty::init_session ();
=20
-  /* Set internal locale to the environment settings. */
-  initial_setlocale ();
-
   if (!__argc)
     {
       PWCHAR wline =3D GetCommandLineW ();

and rebuild your Cygwin DLL, does it make a difference?  In theory
it should work as expected now even with ru_RU.CP866.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--ReoOxgzMK1Uj1WV+
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJTANZqAAoJEPU2Bp2uRE+gmIcP/RM3wsQOUY9ewYoXZUYNGizu
6uZ54xJOJD3URFso945Hoyimg0zwhAhAREqvXxrcjJnxxiOzIdtstQMjGQlvbyr6
pRrYsQU9DxR4yyvr2AMHWrEZ0xn1Uu2sjxNhLTr6/rGGFiB6vtJvQcz/gcvUrS+6
tnMMtpzbqSI0XQVua7z9yAgcdaUzWXoY7eZlR5sK8WSh1A6WEhAvUv/5Kg/3hhv/
yY2uo1xg4QgxphGyMW1R/AO6UuSVrVhq6l01SJaianUXg8foPNqenfjxXS2aMPGY
x32X47EA6GGCFZjIynYC0NkTvVRfGUVjdkUusellrX+LiVsYta/yhKwathGMwDnU
KbBBPObfD0XKDfHNe/JxSC3fepp3HvAQNI9p1uHyPHWkd7IIvlge1+W1yn2m363Y
TOmhs9gH+qH9tYa4HAgh+bEoVDvwIDF92RjqvuVn+rX8w+2+m8NYQppr1LWjbTsc
25bS7D66BF1VSCvwxcGCTI1e9sf6h3B8SMXSC0NumhA33wAhEMfvIJYw1TZ/NpnU
CujIAyPOzq0nzNmcd0ulWQ5JPTOUEF8TkJlYZyLo3GY43ZjS7EZrDwRwb3y8N0h7
62GaIjit7Rv+Kkw5c1ke+LWphGljlisSuwr+sFhQGYRBLkz4F2njB+NaRvQpHVYD
IWKvml4QS0d7Mw6w8qYt
=zodJ
-----END PGP SIGNATURE-----

--ReoOxgzMK1Uj1WV+--

- Raw text -


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