Subject: Re: Making pwd_mkdb statically linked
To: Marc Baudoin <babafou@babafou.eu.org>
From: Julian Assange <proff@iq.org>
List: netbsd-users
Date: 01/16/1999 20:05:32
Marc Baudoin <babafou@babafou.eu.org> writes:

> should have mistyped something.  So he booted on a floppy,
> mounted /, edited /etc/master.passwd to remove the password and
> he was stuck trying to rebuild /etc/spwd.db and /etc/pwd.db
> because pwd_mkdb is a dynamically linked binary (living in
> /usr/sbin).  It's easy to copy ld.so to a fake /usr/libexec and
> run ldconfig but it's pretty cumbersome.  Wouldn't be easier to
> have pwd_mkdb statically linked in /sbin?

No need. Just mount /usr by hand from single user.

Cheers,
Julian.