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:subject:reply-to:to:references:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=mif/cIm/233ANCQC sXn1DzseB0gX6KPEQkVNEtEasFd8hd0rzvYl0gja67YBVUu2pTE5ycP7wdMxxvTn km5Usz4qi6K3YLVHpdlK7hvJkew6eWB5XPEOnAQs7XjWEmHcBwT/ZVRmZv/lCA3Z eQEPjTi+oYy3VmCXLHXA2n+vbfs= 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:subject:reply-to:to:references:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=nz44ko81RbIb5J/tWoMEul EBmh8=; b=y1dmr4rvm2f7xnChT8JtjvJGXGmOoYcfYT5J7ofkeZqyeMK3M6ZYHD 4Y+INaPAQ0BcJXkeHMHfbqKMOrVwsmB+alV5Hc85gRXyvs4NV6nP5fWpU+ssaRLR uCBfHXgdXH7OE58+y4ssxSK5fEzNuz+dMMHOXaTFH3Gy8t4VcZXuM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=Jose, Isaias, Cabrera, jose X-HELO: smtp-out-no.shaw.ca From: Brian Inglis Subject: Re: getent doesn't work properly Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca To: cygwin AT cygwin DOT com References: Openpgp: preference=signencrypt Message-ID: <4b93af10-30a1-ad16-0c1f-7ccc30543500@SystematicSw.ab.ca> Date: Fri, 18 Oct 2019 06:44:04 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 2019-10-17 10:55, Jose Isaias Cabrera wrote: >> Maayan Apelboim, on Thursday, October 17, 2019 09:02 AM, wrote: >> It works fine for other users as much as I can tell. >> The problem seems to be with one specific user. >> myUser AT dom1-job11 ~ >> $ getent passwd myUser >> myUser:*:1049686:1049089:U-UK\myUser,S-1-5-21-892078619-2706518417-4190201681-1110:/home/myUser:/bin/bash >> myUser AT dom1-job11 ~ >> $ getent passwd user1 > Long time ago, I had a problem like that, and I think it was the last line on the passwd file. But, I don't think it's the case with yours. What is enumerated from SAM/AD by getent is controlled by /etc/nsswitch.conf entry db_enum which defaults to: # db_enum: cache builtin I changed my SAM, non-AD, non-domain system to: db_enum: cache local builtin Please read the rest of the info about db_enum in /etc/nsswitch.conf and set up your system accordingly. If you are in a domain with AD, it will be worth your while to configure and run cygserver service, under cygrunsrv, to cache your AD entries. Even if you are on a SAM, non-AD, non-domain system, if you run a lot of Cygwin processes, or use cron a lot, it will be worth your while to configure and run cygserver service, under cygrunsrv, to cache your SAM and process entries. If you run a lot of processes, it may be worth maximizing some entries in /etc/cygserver.conf: # kern.srv.cleanup_threads: No. of cygserver threads used for cleanup tasks. # Default: 2, Min: 1, Max: 16, command line option -c, --cleanup-threads #kern.srv.cleanup_threads 2 kern.srv.cleanup_threads 16 # kern.srv.request_threads: No. of cygserver threads used to serve # application requests. # Default: 10, Min: 1, Max: 310, command line option -r, --request-threads #kern.srv.request_threads 10 kern.srv.request_threads 310 # kern.srv.process_cache_size: No. of concurrent processes which can be handled # by Cygserver concurrently. # Default: 62, Min: 1, Max: 310, command line option -p, --process-cache #kern.srv.process_cache_size 62 kern.srv.process_cache_size 310 -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- 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