getent doesn't work properly
Brian Inglis
Brian.Inglis@SystematicSw.ab.ca
Fri Oct 18 12:44:00 GMT 2019
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
More information about the Cygwin
mailing list