Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Sep 1995 22:05:52 +0200 (MET DST)
From:      guido@gvr.win.tue.nl (Guido van Rooij)
To:        hackers@freebsd.org
Subject:   passwword update times
Message-ID:  <199509052005.WAA00730@gvr.win.tue.nl>

next in thread | raw e-mail | index | archive | help
I've been thinking about a possible solution to the large time
pwd_mkdb needs to update large password databases.

What about this possible solution:
For each of the programs passwd, chsh, chfn and chpass only one user per
invocation can be changed. This is unlike vipw where everything can be
done to the password file.
For the non-vipw ones, we could add an option to pwd_mkdb, let's say -u
that makes that pwd_mkdb, in staed of completely rebuilding the pwd.db
and spwd.db files, only updates (via put()) the entry for the specified user.
(so pwd_mkdb' operation remains the same as now, except it copies {s,}pwd.db
and does only one put()).
That would mean that only vipw has the performance problem.

What do you think?

-Guido



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