Subject: Re: Changing root password
To: None <port-alpha@netbsd.org, stanp@storm.ca>
From: Ross Harvey <ross@teraflop.com>
List: port-alpha
Date: 08/29/1998 00:10:18
> From: Stan Pietkiewicz <stanp@storm.ca>
> ...
> Courtesy of a few weeks vacation and the onset of CRAFT syndrome (Can't
> Remember A Fine Thing), I've forgotten the passwords for both my user
> account and root on my AXP PCI33 running Netbsd 1.3E.
>
> How can I get this thing back???

One way is to netboot from a root you can write to. Note that what you
really need are the /etc/*.db files; passwd and master.passwd are mostly
unused except by vipw(1).

It's probably easier to just:

	[ get to the SRM >>> prompt, possibly by hitting the reset button
	and maybe by typing lots of ^C keys if AUTO_ACTION is BOOT ]

	>>> b -fl s
	...
	$ fsck -p
	$ halt
	...
	>>> b -fl s
	...
	$ mount -a
	$ EDITOR=ed vipw
	1s/:[^:]*:/::/
	w
	q
	$ umount -a
	$ exit


  -- Ross Harvey