Skip site navigation (1)Skip section navigation (2)
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>

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




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