From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70664 invoked by alias); 18 Oct 2019 12:44:10 -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 70647 invoked by uid 89); 18 Oct 2019 12:44:09 -0000 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 Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.12) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Oct 2019 12:44:07 +0000 Received: from [192.168.1.114] ([24.64.172.44]) by shaw.ca with ESMTP id LRbwiFnz8UIS2LRbxiP9Iv; Fri, 18 Oct 2019 06:44:05 -0600 From: Brian Inglis Subject: Re: getent doesn't work properly Reply-To: Brian.Inglis@SystematicSw.ab.ca To: cygwin@cygwin.com References: Openpgp: preference=signencrypt Message-ID: <4b93af10-30a1-ad16-0c1f-7ccc30543500@SystematicSw.ab.ca> Date: Fri, 18 Oct 2019 12:44:00 -0000 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 X-SW-Source: 2019-10/txt/msg00099.txt.bz2 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@dom1-job11 ~ >> $ getent passwd myUser >> myUser:*:1049686:1049089:U-UK\myUser,S-1-5-21-892078619-2706518417-4190201681-1110:/home/myUser:/bin/bash >> myUser@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