From owner-freebsd-questions Sun Mar 18 20: 8:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 9B9FD37B718 for ; Sun, 18 Mar 2001 20:08:19 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.11.3/8.11.3) id f2J48Dk02012; Sun, 18 Mar 2001 22:08:13 -0600 (CST) (envelope-from dan) Date: Sun, 18 Mar 2001 22:08:13 -0600 From: Dan Nelson To: David Kelly Cc: Christopher Leigh , freebsd-questions@FreeBSD.ORG Subject: Re: uhm. why isn't there a vigr for freebsd? Message-ID: <20010318220813.A23241@dan.emsphone.com> References: <200103190333.f2J3XDe33615@grumpy.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.14i In-Reply-To: <200103190333.f2J3XDe33615@grumpy.dyndns.org>; from "David Kelly" on Sun Mar 18 21:33:12 GMT 2001 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Mar 18), David Kelly said: > "Christopher Leigh" writes: > > hi. uhm, i was just wondering... there's vipw, but how come there's > > no vigr for freebsd? > > Expect it has to do with the fact there was not a vipw until after > /etc/passwd turned into a dummy file and the real data moved > elsewhere. I think it's more likely that since the passwd file can be edited by users (via passwd, chfn and friends), it has to be locked during edits. Vipw handles the locking, and also does some sanity checks to make sure the file is ok before updating the database. According to the manpage, vipw appeared in BSD4.0, long before FreeBSD was started. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message