delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/05/13/17:15:23

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:to:subject:references:from:date:in-reply-to
:message-id:mime-version:content-type; q=dns; s=default; b=ZOUP0
4cYld3sbux+zGr92XmIyjRI9uTMCCafoXiSxs/v4YlweZ0hTwGdjcB4UMIqV2cFf
2w8g9jzIIrflHpwFhBApdepzFUbP/j2Y1DcAANxEW2qS8GtKCPlbPOsfoHZKWd67
VTjHKPtOyA4wn4tGwk2MZQIo3MMGoyDvPPGekY=
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:to:subject:references:from:date:in-reply-to
:message-id:mime-version:content-type; s=default; bh=pkgrx9sFmf4
MTqa7BqlH7bUlS0A=; b=nnjLGSAOrCsmtI/IBOdpKx/QYoZKPoBVxTuNGvxDtmv
4SiDOoitIWqLJrHh6ATcf4Xf425LFVWOiCCKDXVR4pLKXofdW+rsX87usAKNhTRx
LKabDDrQKWhxJG8Qoc5vLUQIJpHb6jA4uLZVfEQJHPT3NsiCUuNVNn/BryuynS8w
=
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=-1.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2
X-HELO: nougat.ucs.ed.ac.uk
To: cygwin AT cygwin DOT com
Subject: Re: More testing needed: New passwd/group AD/SAM integration
References: <20140513105832 DOT GM2436 AT calimero DOT vinschen DOT de> <f5biop9x55t DOT fsf AT troutbeck DOT inf DOT ed DOT ac DOT uk> <20140513145247 DOT GQ2436 AT calimero DOT vinschen DOT de> <20140513161626 DOT GT2436 AT calimero DOT vinschen DOT de> <f5ba9aliqv0 DOT fsf AT troutbeck DOT inf DOT ed DOT ac DOT uk> <20140513164122 DOT GU2436 AT calimero DOT vinschen DOT de> <f5b61l9io4h DOT fsf AT troutbeck DOT inf DOT ed DOT ac DOT uk> <20140513191732 DOT GX2436 AT calimero DOT vinschen DOT de>
From: ht AT inf DOT ed DOT ac DOT uk (Henry S. Thompson)
Date: Tue, 13 May 2014 22:15:02 +0100
In-Reply-To: <20140513191732.GX2436@calimero.vinschen.de> (Corinna Vinschen's message of "Tue\, 13 May 2014 21\:17\:32 +0200")
Message-ID: <f5boaz1gz3d.fsf@troutbeck.inf.ed.ac.uk>
User-Agent: Gnus/5.101 (Gnus v5.10.10) XEmacs/21.5-b33 (linux)
MIME-Version: 1.0
X-Edinburgh-Scanned: at nougat.ucs.ed.ac.uk with MIMEDefang 2.60, Sophie, Sophos Anti-Virus, Clam AntiVirus
X-IsSubscribed: yes

Corinna Vinschen writes:

> On May 13 18:29, Henry S. Thompson wrote:

>> Glitch (also true for x86 1.7.29-2):
>>   id returns effectively immediately for all users and non-users _except_:
>>    > time id Administrators
>>     uid=544(+Administrators) gid=544(+Administrators)
>>     groups=11(+Authenticated Users),544(+Administrators)
>> 
>>     real    0m2.296s
>>     user    0m0.015s
>>     sys     0m0.015s
>
> This shouldn't happen as long as we still have the "+" prepended to
> BUILTIN accounts(*).  And, as a matter of fact, I can't reproduce this
> with the latest from CVS (== the snapshot you're testing).  Did you exit
> your shell and restart it after creating the /etc/nsswitch.conf file as
> described in my preliminary documentation?

Yes, and I just re-did that, and I'm still getting the delay.  You did
notice that it's the plural version (Administrator_s_) that has the
delay -- Administrator (no 's') is just as fast as all the others.

Adding the '+' doesn't change the behaviour.

Ah, it occured to me to do an strace, and I found the culprit, I
think:

   19  392152 [main] id 16856 stat_worker: 0 = (\??\C:\C64\dev,0x1802C2940)
   26  392178 [main] id 16856 fstat64: 0 = fstat(1, 0x23A4F0)
   30  392208 [main] id 16856 isatty: 1 = isatty(1)
 1085  393293 [main] id 16856 pwdgrp::fetch_account_from_windows: line: <+Administrators:*:544:544:,S-1-5-32-544:/:/sbin/nologin>
2253178 2646471 [main] id 16856 seterrno_from_win_error: /home/cygnus/vinschen/mknetrel/src/cygwin-snapshot-20140513-1/winsup/cygwin/sec_auth.cc:244 windows error 1355
  187 2646658 [main] id 16856 geterrno_from_win_error: unknown windows
error 1355, setting errno to 13

Does that help?

> (*) I'd be grateful for input to the questions I asked in my OP, too.

Sorry, I am just a Un*x guy trying to live on a Windows box, I have
nothing like the necessary Windows sysadmin background to have an
opinion.  I thought I would try your snapshots precisely _because_ I
understand almost nothing about all this -- I followed the 'mkpasswd'
instructions 8 years ago, and never touched things after that, and I
was just trying to help by seeing if there was anything a trial by a
naive user could uncover before things got fully released.

ht
-- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: ht AT inf DOT ed DOT ac DOT uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

--
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