From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26046 invoked by alias); 13 May 2014 21:15:08 -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 26026 invoked by uid 89); 13 May 2014 21:15:07 -0000 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 Received: from nougat.ucs.ed.ac.uk (HELO nougat.ucs.ed.ac.uk) (129.215.13.205) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 13 May 2014 21:15:05 +0000 Received: from crunchie.inf.ed.ac.uk (crunchie.inf.ed.ac.uk [129.215.33.180]) by nougat.ucs.ed.ac.uk (8.13.8/8.13.4) with ESMTP id s4DLF2p0019374 for ; Tue, 13 May 2014 22:15:02 +0100 (BST) Received: from troutbeck.inf.ed.ac.uk (troutbeck.inf.ed.ac.uk [129.215.25.32]) by crunchie.inf.ed.ac.uk (8.14.4/8.14.4) with ESMTP id s4DLF1mQ018241 for ; Tue, 13 May 2014 22:15:01 +0100 Received: from troutbeck.inf.ed.ac.uk (localhost [127.0.0.1]) by troutbeck.inf.ed.ac.uk (8.14.4/8.14.4) with ESMTP id s4DLF2mn000734 for ; Tue, 13 May 2014 22:15:02 +0100 Received: (from ht@localhost) by troutbeck.inf.ed.ac.uk (8.14.4/8.14.4/Submit) id s4DLF2wC000729; Tue, 13 May 2014 22:15:02 +0100 To: cygwin@cygwin.com Subject: Re: More testing needed: New passwd/group AD/SAM integration References: <20140513105832.GM2436@calimero.vinschen.de> <20140513145247.GQ2436@calimero.vinschen.de> <20140513161626.GT2436@calimero.vinschen.de> <20140513164122.GU2436@calimero.vinschen.de> <20140513191732.GX2436@calimero.vinschen.de> From: ht@inf.ed.ac.uk (Henry S. Thompson) Date: Tue, 13 May 2014 21:28:00 -0000 In-Reply-To: <20140513191732.GX2436@calimero.vinschen.de> (Corinna Vinschen's message of "Tue\, 13 May 2014 21\:17\:32 +0200") Message-ID: User-Agent: Gnus/5.101 (Gnus v5.10.10) XEmacs/21.5-b33 (linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Edinburgh-Scanned: at nougat.ucs.ed.ac.uk with MIMEDefang 2.60, Sophie, Sophos Anti-Virus, Clam AntiVirus X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00295.txt.bz2 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@inf.ed.ac.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