Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Mar 2001 22:08:13 -0600
From:      Dan Nelson <dnelson@emsphone.com>
To:        David Kelly <dkelly@hiwaay.net>
Cc:        Christopher Leigh <clcont@gmx.net>, freebsd-questions@FreeBSD.ORG
Subject:   Re: uhm. why isn't there a vigr for freebsd?
Message-ID:  <20010318220813.A23241@dan.emsphone.com>
In-Reply-To: <200103190333.f2J3XDe33615@grumpy.dyndns.org>; from "David Kelly" on Sun Mar 18 21:33:12 GMT 2001
References:  <clcont@gmx.net> <200103190333.f2J3XDe33615@grumpy.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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