Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Aug 2001 02:00:39 -0700
From:      dannyman <dannyman@toldme.com>
To:        =?iso-8859-1?Q?Bj=F6rn_T=F6rnqvist?= <bjorn.tornqvist@west.se>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Speeding up account-adding?
Message-ID:  <20010807020039.A14999@toldme.com>
In-Reply-To: <013501c11f18$346fc1a0$0e00a8c0@bashful>; from bjorn.tornqvist@west.se on Tue, Aug 07, 2001 at 10:08:55AM %2B0200
References:  <013501c11f18$346fc1a0$0e00a8c0@bashful>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 07, 2001 at 10:08:55AM +0200, Björn Törnqvist wrote:

> At work, we need to add 100k+ loginaccounts on a single system, but
> I've found that after about 15k accounts it takes ~5 seconds to add it
> (through pw useradd).  My guess is that its the pwmkdb that is slowing
> things down at an exponetial rate - anyone know how to fix this?
> 
> Please reply to me as I'm not a member of the list.

You would labotomize pw to not call pwd_mkdb, and then carefully feed pw
incremented UIDs, and then run pwd_mkdb when you are done. :)

http://www.daemonnews.org/199905/user-mgmt.html

-danny

-- 
http://dannyman.toldme.com/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010807020039.A14999>