From owner-freebsd-hackers Sat Sep 23 14:38:21 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id OAA02266 for hackers-outgoing; Sat, 23 Sep 1995 14:38:21 -0700 Received: from ns1.win.net (ns1.win.net [204.215.209.3]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id OAA02261 for ; Sat, 23 Sep 1995 14:38:17 -0700 Received: (from bugs@localhost) by ns1.win.net (8.6.11/8.6.9) id RAA24218 for hackers@freebsd.org; Sat, 23 Sep 1995 17:42:18 -0400 From: Mark Hittinger Message-Id: <199509232142.RAA24218@ns1.win.net> Subject: Re: Guido's pwd_mkdb improvements (fwd) To: hackers@freebsd.org Date: Sat, 23 Sep 1995 17:42:17 -0400 (EDT) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 1151 Sender: owner-hackers@freebsd.org Precedence: bulk > From: Brian Tao > 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