Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Sep 1995 17:42:17 -0400 (EDT)
From:      Mark Hittinger <bugs@ns1.win.net>
To:        hackers@freebsd.org
Subject:   Re: Guido's pwd_mkdb improvements (fwd)
Message-ID:  <199509232142.RAA24218@ns1.win.net>

next in thread | raw e-mail | index | archive | help
> From: Brian Tao <taob@io.org>
>     Sorry, I'm just getting back up to speed again with my new job in
> Toronto... what are these improvements to pwd_mkdb?

If you have a large password file then there will be a considerable resource
hit whenever you change a passord or add an account.  pwd_mkdb will use a lot
of vm and a lot of processor.  It is very noticeable.  

Guido wrote some modifications for pwd_mkdb that causes it to support a
"-u username" parameter.  Rather than rebuild the entire file, this option
causes an update of an existing record, or the creation of a new record.

I have tested it, and am running it here in production with no problems seen.

This eliminates the resource hit, except in the case of a deletion.  We rarely
delete records so this is not a big deal.  Guido has some small adjustments
for chpass, passwd, and passwd.local to call pwd_mkdb with the -u.  

"vipw" is the only fly in the ointment, since you could modify two or more
records.  Someone might be tempted to "dd" :-)  A rebuild of the entire file 
must be assumed.

Regards,


Mark Hittinger
Internet Manager
WinNET Communications, Inc.
bugs@win.net



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