Date: Fri, 18 Feb 2000 02:10:04 -0800 (PST) From: Neil Blakey-Milner <nbm@mithrandr.moria.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/16798: rmuser rebuilds entire passwd datebase for single user Message-ID: <200002181010.CAA13466@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/16798; it has been noted by GNATS. From: Neil Blakey-Milner <nbm@mithrandr.moria.org> To: oui@jps.net Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: bin/16798: rmuser rebuilds entire passwd datebase for single user Date: Fri, 18 Feb 2000 12:02:27 +0200 On Thu 2000-02-17 (16:41), oui@jps.net wrote: > >Number: 16798 > >Category: bin > >Synopsis: rmuser rebuilds entire passwd datebase for single user > rmuser rebuilds entire database for passwd with rmuser. On our system > this takes about 5-10 minutes (ugh) > > >How-To-Repeat: > try rmuser > >Fix: > change > system('/usr/sbin/pwd_mkdb', '-p', ${new_passwd_file}); > to > system('/usr/sbin/pwd_mkdb', '-u', ${login_name}, '-p', ${new_passwd_file}); > in > /usr/sbin/rmuser Have you tested this change? The code I added to pw does this: if (mode == UPD_DELETE) rc = pwdb(NULL); else rc = pwdb("-u", user, NULL); This is because pkg_mkdb -u login when deleting 'login' didn't work for me. Neil -- Neil Blakey-Milner nbm@rucus.ru.ac.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002181010.CAA13466>