From owner-freebsd-small  Thu Feb 22  4: 0:23 2001
Delivered-To: freebsd-small@freebsd.org
Received: from www.svzserv.kemerovo.su (www.svzserv.kemerovo.su [213.184.65.80])
	by hub.freebsd.org (Postfix) with ESMTP id 62B2F37B4EC
	for <freebsd-small@freebsd.org>; Thu, 22 Feb 2001 04:00:18 -0800 (PST)
	(envelope-from eugen@www.svzserv.kemerovo.su)
Received: (from eugen@localhost)
	by www.svzserv.kemerovo.su (8.9.3/8.9.3) id TAA83321
	for freebsd-small@freebsd.org; Thu, 22 Feb 2001 19:00:15 +0700 (KRAT)
	(envelope-from eugen)
Date: Thu, 22 Feb 2001 19:00:15 +0700
From: Eugene Grosbein <eugen@iname.com>
To: freebsd-small@freebsd.org
Subject: strange behavour of passwd
Message-ID: <20010222190015.F35703@svzserv.kemerovo.su>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Sender: owner-freebsd-small@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.ORG

Hi!

When I boot PicoBSD there are /etc/pwd.db and /etc/spwd.db
made by mfs_tree/rc from master.passwd, each occupies 40kB.
If you type "df;passwd;df" (and do change password) you see that
free space descreased, difference is about 40kB. But files are of
the same size.
If you had not enough free space, passwd will fail. Now type 
"cd /etc; pwd_mkdb -p ./master.passwd; df" and see, free space is back
again.

My floppy has enough space to run 'passwd' ones. The second run fails
(there is no enougn space to make .tmp copies of [s]pwd.db) if
I do not 'pack' hashes with pwd_mkdb, as shown above.

The question is: do [s]pwd.db have hole and does 'passwd' destroy it?
If so, can it be considered as a bug in 'passwd' ?

Eugene Grosbein

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-small" in the body of the message