From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9765 invoked by alias); 14 Feb 2014 00:31:00 -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 9724 invoked by uid 89); 14 Feb 2014 00:30:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: etr-usa.com Received: from etr-usa.com (HELO etr-usa.com) (130.94.180.135) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 14 Feb 2014 00:30:58 +0000 Received: (qmail 10945 invoked by uid 13447); 14 Feb 2014 00:30:54 -0000 Received: from unknown (HELO [172.20.0.42]) ([68.35.121.157]) (envelope-sender ) by 130.94.180.135 (qmail-ldap-1.03) with SMTP for ; 14 Feb 2014 00:30:54 -0000 Message-ID: <52FD63BC.60800@etr-usa.com> Date: Fri, 14 Feb 2014 06:40:00 -0000 From: Warren Young User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Testers needed: New passwd/group handling in Cygwin References: <20140213143849.GH2246@calimero.vinschen.de> In-Reply-To: <20140213143849.GH2246@calimero.vinschen.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00334.txt.bz2 On 2/13/2014 07:38, Corinna Vinschen wrote: > > The new > mechanism will never read the entire file into memory, but only scan > for the requested entry and cache this one in memory[2]. Does this feature avoid the stale cache problem? For instance, do you check the mtime on /etc/{passwd,group} before checking the cache, then dump the whole cache if the file was changed since the last file scan? > Apart from power shell scripting or inventing new CLI tools, these > attributes can be changed using the "Attribute Editor" tab in the user > properties dialog of the "Active Directory Users and Computers" > MMC snap-in. A week ago, we were talking about possible Cygwin {user,group}{add,mod} programs, modeled on Linux's. Was that simply shelved once "net user" and MMC were found to be sufficient? If such programs existed, they could abstract away the difference between /etc/passwd, SAM and AD. Plus, net.exe is a hairball. If, magically, such programs were to appear from outside the Cygwin core dev group, would that be a good thing or a bad thing? > unix="value" Sets the NFS/Samba uid of the user to the decimal > value. See the next chapter. I know I'm bikeshedding, but "unix" seems like a pretty vague attribute name here. unix="good" ? unix="linux" ? unix="yesplease" ? I'd be happier with "uid" or similar. Write it in a sentence: a. My uid is 502; vs b. My unix is 502. > If you create or change /etc/nsswitch.conf, > make sure to stop and restart all Cygwin processes to pick up > the change. "All" processes? If I have cron running, then exit the one instance of MinTTY after vim'ing /etc/nsswitch.conf, will the file be read when I re-open MinTTY? cron.exe is running in a different process group, isn't it? If true, I realize cron.exe and any programs it runs will continue to believe there is no /etc/nsswitch.conf until *it* restarts. > the order [in nsswitch.conf] will be ignored by Cygwin. Hmmm...different from Linux. The inability to say "db files" as distinct from "files db" means you can't set up a SAM-only machine with SAM as a fast primary source of truth and "files" as a fallback. That seems like a sensible configuration to me, since SAM should always be more trustworthy than /etc/passwd. Personally, I'm going to try to get away with "db" only, but for systems that really require "files", I'd like the choice to make it secondary to "db". -- 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