delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/12/19/12:08:47

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:from:resent-message-id:resent-date:resent-from
:resent-to:mime-version:content-type:content-transfer-encoding
:message-id:references:date:to:in-reply-to:subject; q=dns; s=
default; b=P633VtsQeK5ikjvk/Tl4JCrHhLpwSpu0ap0EkW61Oiu5B79yw9Own
HmioItrMjVTuyO+miItO6j8QTFT+d7wALB/HlnP4taECAYt5cnau+bXKmdkwTuCL
9vlQ+3bkjLxpIaikjcGF+BPSYXdgZHMnM/QFp95XfvXzvxFP/zigTs=
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:from:resent-message-id:resent-date:resent-from
:resent-to:mime-version:content-type:content-transfer-encoding
:message-id:references:date:to:in-reply-to:subject; s=default;
bh=OBGuZCyN92DQkLSo8SeCzeexK4A=; b=VUgOaKWQIWJ2At75msEaQPlbIAqj
B0/2/53gCtXTwl+xjmD2+IT7QB5cXuvNriQYePFV8gR8LiZIs+Izl8LZSbwFYoun
R67N8KK7poeCIL3Vd+UdlsMwG+o2rvR5VBguA9tFm/g2pRX8O0OgHeIDVlVI+a5s
hrbcCvjmqHf75LM=
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: 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
X-Received: by 10.28.216.72 with SMTP id p69mr10630038wmg.14.1450544905922; Sat, 19 Dec 2015 09:08:25 -0800 (PST)
From: Dr Rainer Woitok <rainer DOT woitok AT gmail DOT com>
X-Google-Original-From: Dr Rainer Woitok <Rainer DOT Woitok AT Gmail DOT Com>
Resent-Message-ID: <22133 DOT 36608 DOT 124000 DOT 223276 AT woitok DOT gmail DOT com>
Resent-Date: Sat, 19 Dec 2015 18:08:16 +0100
Resent-From: Dr Rainer Woitok <Rainer DOT Woitok AT gmail DOT com>
Resent-To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Message-ID: <22132.1234.560000.81409@woitok.gmail.com>
References: <20151216164758 DOT GL3507 AT calimero DOT vinschen DOT de>
Date: Fri, 18 Dec 2015 14:06:26 +0100
To: cygwin AT cygwin DOT 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

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 DOT Woitok AT Gmail DOT 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

- Raw text -


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