Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jan 1998 00:55:42 -0500 (EST)
From:      gjp@erols.com (Gary Palmer)
To:        hackers@FreeBSD.ORG
Subject:   Re: How are people handling lots of accounts?
Message-ID:  <199801100555.AAA01049@mutara.noc.erols.net>
References:  <Pine.NEB.3.95.980107181608.25611Q-100000@mail.cdsnet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <Pine.NEB.3.95.980107181608.25611Q-100000@mail.cdsnet.net>,
	mrcpu@cdsnet.net (Jaye Mathisen) writes:
> Is there anything that can be done to speed this up?  Changing the
> password isn't too bad, only about 30 seconds, but adding takes forever.

Use CDB instead of Berkeley DB. A competent programmer could do this
in less than a day. You could probably rebuild a 50,000 user password
file in less than a minute. Unfortunately, single-user password
changes will need to be un-done and the entire file rebuilt, rather
than the optimization in passwd/pwd_mkdb which doesn't rebuild the
file for a single user change.

(Unless you hack CDB to allow the data to be changed without the key
 being changed .. since the data (the password) will be the same
 length, in theory, its possible)

Gary



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