delorie.com/archives/browse.cgi | search |
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:to:from:subject:date:message-id:references | |
:mime-version:content-type:content-transfer-encoding; q=dns; s= | |
default; b=tMGSWetxmp3dDTfNpNkh6/NgQJ5hcvRQqluYECJLXWX2tU2EJkfqa | |
iJot8XrcL69A4Ld5TlwhNed9zPNmH9KHZvoc7TFLqTuvAQcvehHcLgEeE9CGj20p | |
XCuh7njmVXH3+y7Fil4dVp+RizurIp++/aFBTxR7Jo71P+tFnu24Bs= | |
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:to:from:subject:date:message-id:references | |
:mime-version:content-type:content-transfer-encoding; s=default; | |
bh=4eWhx676uFXvPOy1SbhIHNmqZbA=; b=thkNwGWsOMAIFrrBcIvEd+eTV6C/ | |
H5s12nAh9MRSW4eKKzI6COeGE84Cf+UHUq4c25uY7y9wdZZnCgRZUrP8Wu47KIF8 | |
Cc/IXjBSSCVw/tbluwxDcKIqjHR/xRVt2iqjBEEoDcf1WnCU66BwbGRHUQU6WqyA | |
0DqDF1kbXsAxfag= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | plane.gmane.org |
To: | cygwin AT cygwin DOT com |
From: | Kurt Franke <Kurt-Franke AT web DOT de> |
Subject: | Re: How big are your /etc/passwd and /etc/group files? |
Date: | Mon, 3 Feb 2014 17:52:37 +0000 (UTC) |
Lines: | 46 |
Message-ID: | <loom.20140203T183022-692@post.gmane.org> |
References: | <20140131203738 DOT GA8707 AT calimero DOT vinschen DOT de> <CAKf2h5R-FuQX9W=ojw4+ez8gqOHjwYshMh3FmmfNu3r12sRFeQ AT mail DOT gmail DOT com> <20140131220314 DOT GH2821 AT calimero DOT vinschen DOT de> <52EC4727 DOT 2000308 AT gmail DOT com> <20140201102652 DOT GA26805 AT calimero DOT vinschen DOT de> |
Mime-Version: | 1.0 |
User-Agent: | Loom/3.14 (http://gmane.org/) |
X-IsSubscribed: | yes |
Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes: > > dbm style unix) database, and don't keep that in memory, unless you > > want a small LRU algorithm in there to keep a small fixed number. I > > bet the tiny delay later on a ls or other unix translation won't be > > very noticeable. > > This means, a rewrite of the /etc/passwd, /etc/group reading code from > "all or nothing" to "one at a time when needed". Maybe that's in fact > the way to go. dbm files was already used in yellow pages two dekades ago. maybe there are some good examples how to do this (yppasswd etc.) > In theory, we don't want to keep the files around anyway. I have > implemented ways to configure user settings from /etc/passwd (like > home dir or login shell) in the local SAM or in AD. So the admin > can switch to centralized maintainance even for Cygwin stuff. how to handling setting of the the primary group in /etc/passwd ? is it possible to store in in SAM ? > On the other hand, we'd like to keep passwd and group for home users > which don't feel comfortable to make changes to the SAM, but then > we only need very tiny files with one or two entries anyway. > > Reading the files on demand only might be the right thing to do. > Catching two birds with one stone... it may be possible to have both using SAM but with a frontend named /etc/passwd respective /etc/group how about setting up read/write devices for passwd and group contents in /dev/ directory and just create symobolic links to it in /etc/ ? changes written to the devices of should be allow only to admins. such changes then should go done to SAM behind it as only storage location. (this would make cygwin have the most modern handling of theses files and become an example for the different unices and linux :-) ) kf -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |