From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 105382 invoked by alias); 19 Dec 2015 17:08:31 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 105364 invoked by uid 89); 19 Dec 2015 17:08:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: Yes, score=5.6 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,HK_NAME_FM_DR,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_LOW,SPAM_BODY1,SPF_PASS autolearn=no version=3.3.2 spammy=founded, habit, appending, 831 X-HELO: mail-wm0-f46.google.com Received: from mail-wm0-f46.google.com (HELO mail-wm0-f46.google.com) (74.125.82.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sat, 19 Dec 2015 17:08:29 +0000 Received: by mail-wm0-f46.google.com with SMTP id p187so21731430wmp.0 for ; Sat, 19 Dec 2015 09:08:29 -0800 (PST) X-Received: by 10.28.216.72 with SMTP id p69mr10630038wmg.14.1450544905922; Sat, 19 Dec 2015 09:08:25 -0800 (PST) Received: from tablet (dslb-094-216-008-030.094.216.pools.vodafone-ip.de. [94.216.8.30]) by smtp.gmail.com with ESMTPSA id u134sm11655306wmd.0.2015.12.19.09.08.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Dec 2015 09:08:25 -0800 (PST) From: Dr Rainer Woitok X-Google-Original-From: Dr Rainer Woitok Received: by tablet (sSMTP sendmail emulation); Sat, 19 Dec 2015 18:08:17 +0100 Resent-Message-ID: <22133.36608.124000.223276@woitok.gmail.com> Resent-Date: Sat, 19 Dec 2015 18:08:16 +0100 Resent-From: Dr Rainer Woitok Resent-To: cygwin@cygwin.com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <22132.1234.560000.81409@woitok.gmail.com> References: <20151216164758.GL3507@calimero.vinschen.de> Date: Sat, 19 Dec 2015 17:08:00 -0000 To: cygwin@cygwin.com In-Reply-To: Msg <20151216164758.GL3507@calimero.vinschen.de> of 2015-12-16 17:47:58 +0100 from corinna-cygwin@cygwin.com Subject: Re: SegFault running "ls -l" after Microsoft Patch Day X-SW-Source: 2015-12/txt/msg00242.txt.bz2 Corinna, On Wednesday, 2015-12-16 17:47:58 +0100, you wrote: > ... > > Since my "/etc/passwd" file > > uses more Unix like names even for the typical Windows accounts, > > Which doesn't make much sense from my POV, but, anyway. Well, from my point of view it does. My game is to have an as Unix like environment as possible on Windows, rather than allowing Windows to teach Unix that user or group names are as long as tape worms and (of all things!) contain blanks, as in, for instance, "NT SERVICE+TrustedIn- staller", "Medium Mandatory Level", "NTLM Authentication", and so on. If you started to write Unix scripts in the days before a certain com- pany named "Microsoft" was even founded, and if you developed the habit of processing output from commands like "ls -l" or "id" by using runs of blanks as field separators, and if you still have some of these scripts around, and even write new ones still using this habit, you'll probably know how anoying these Window-isms can be. By basically using mkpasswd -l | sed '...' > /etc/passwd mkgroup -l | sed '...' > /etc/group to roll my own versions of "/etc/passwd" and "/etc/group" I do nothing more then using blankless and rather short names for users and groups. And the only purpose of these terminating "other:" lines in both files was to abbreviate "Unknown+User" and "Unknown+Group" to "other". So I'm not hiding any real information, as you put it, I'm just keeping the string conveying this information Unix like, that is, short. My approach of appending these "other:" lines to the "password" and "group" files may well be "illegal" and may well break things in Cygwin (though up to last Patch Day it didn't), so is there an official way to change "Unknown+User" and "Unknown+Group" to "other" and -- while we are talking about it -- to change "4095(CurrentSession)" in the output of the "id" command to something shorter? Currently, the latter is the on- ly string I didn't yet manage to change by fiddling around with "/etc/ group" (yes, it's blank free, but it's by far too long). > ... > The questions you should ask yourself: Why are there SIDs unknown to > Cygwin, despite Cygwin fetching account info directly from Windows? No, that never was the question because the answer is obvious. For me the question always has been how to change these strings into something less in the way of fitting the output of "ls -l" into an XEmacs or term- inal window traditionally eighty characters wide. > Apart from the explanation in > https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-how When Cygwin introduced this mapping some years ago, above URL contained most of the information I needed to remove unwanted blanks from the out- put of the "id" command by adding additional groups to "/etc/group". Thank you for that. Just for the record: this description fails to ex- plain the conversion of "NT SERVICE+TrustedInstaller" (also known as "S- 1-5-80-V-W-X-Y-Z") to "328384". > ... > I applied a fix and uploaded a new developer snapshot to > https://cygwin.com/snapshots/ and created a new test release 2.4.0-0.11 > for testing. Please give any of them a try. Sure. I've already downloaded "cygwin1-20151216.dll.xz" and will test it and report back as soon as time permits. Sincerely, Rainer ---------------------------------------------------------------------- | Rainer M Woitok | Phone : (+49 60 93) 487 95 95 | | Kolpingstraße 3 | Mobile: (+49 172) 813 6 831 | | D-63846 Laufach | Mail : Rainer.Woitok@Gmail.Com | | Germany | | ---------------------------------------------------------------------- -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple