*BSD News Article 91364


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!worldnet.att.net!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Large passwd files = long rebuilds
Date: 19 Mar 1997 00:15:59 GMT
Organization: Private BSD site, Dresden
Lines: 43
Message-ID: <5gnb7v$7uh@uriah.heep.sax.de>
References: <332E7A71.3BB7@ilink.nis.za> <332EBDF4.2781E494@jnet.vi>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:37282

John Lucas <jlucas@jnet.vi> wrote:

> > Does anybody else get irritated with the fact that every time you
> > change a password on a FreeBSD system that has a lot of users (>10000)
> > it takes FOREVER to rebuild the password database?

> I too find this annoying. So far the only relief I have gotten is to run
> on really fast hardware (P5-200, Ultra-Wide SCSI drive) :-}

> I would love a password database that could be incrementally updated,
> but until one shows up, I struggle along.

UTSL. :-)

RCS file: /home/cvs/src/usr.bin/passwd/local_passwd.c,v
Working file: /usr/src/usr.bin/passwd/local_passwd.c
head: 1.15

...
----------------------------
revision 1.9
date: 1996/07/01 19:38:24;  author: guido;  state: Exp;  lines: +2 -2
branches:  1.9.2;
Implement incremental passwd database updates. This is done by ading a '-u'
option to pwd_mkdb and adding this option to utilities invoking it.
Further, the filling of both the secure and insecure databases has been
merged into one loop giving also a performance improvemnet.
Note that I did *not* change the adduser command. I don't read perl
(it is a write only language anyway).
The change will drastically improve performance for passwd and
friends with large passwd files. Vipw's performance won't change.
In order to do that some kind of diff should be made between the
old and new master.passwd and depending the amount of changes, an
incremental or complete update of the databases should be agreed
upon.
----------------------------

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)