*BSD News Article 88354


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.bbnplanet.com!cpk-news-hub1.bbnplanet.com!news.maxwell.syr.edu!EU.net!Germany.EU.net!Dortmund.Germany.EU.net!interface-business.de!usenet
From: j@ida.interface-business.de (J Wunsch)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: Running pwd_mkdb on large servers
Date: 3 Feb 1997 14:40:09 GMT
Organization: interface business GmbH, Dresden
Lines: 20
Message-ID: <5d4tc9$jiu@innocence.interface-business.de>
References: <01bc1186$fa8f0ca0$321c13cf@psycho>
Reply-To: joerg_wunsch@interface-business.de (Joerg Wunsch)
NNTP-Posting-Host: ida.interface-business.de
X-Newsreader: knews 0.9.6
X-Phone: +49-351-31809-14
X-Fax: +49-351-3361187
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.bsdi.misc:5872

"Brian" <brian@capecod.net> wrote:

> I was wondering if there was a way to shorten the amount of time it takes
> to run pwd_mkdb on /etc/master.passwd .. It takes nearly a minute on a P200
> w/ 64mb RAM.  This system (our mail server) is constantly getting changes
> made to users and their passwords are changed occasionaly.  But, with over
> 8000 mail accounts on this server, occasional can be considered almost
> every 10-15 minutes during the week.  

Guido van Roij once developed a solution to this under FreeBSD.
Basically, the updates are only done only for that user that has just
been changing.  Naturally, it doesn't work for vipw(8), but it works
for things like chpass(1) or passwd(1).

Should be portable to BSD/OS.

-- 
J"org Wunsch					       Unix support engineer
joerg_wunsch@interface-business.de       http://www.interface-business.de/~j