On Fri, Jul 15, 2005 at 09:44:35AM +0300, Vasil Dimov wrote:
> On Thu, Jul 14, 2005 at 09:55:16AM -0400, John Von Essen wrote:
> > Boot with 1st CD, goto the Fixit Shell (will need 2nd CD). From there you
> > have to manually mount the / filesystem and edit passwd (just clear out
> > the passwd, root::). However, do an fsck on the device first (you may have
> > to reboot afterwards) since if you have any fragmentation following an
> > unclean shutdown, you will not be able to mount the device.
> > 
> 
> Simply editing /etc/passwd won't do the work (this is not Linux, eah)
> /etc/master.passwd must be edited and then pwd_mkdb /etc/master.passwd
> must be run.

Much easier to just chroot(8) into the mounted filesystem and use
the 'passwd root' command, as others have already suggested - after booting
from the fixit CD, of course.

[Cc list snipped, eek]

G'luck,
Peter

-- 
Peter Pentchev  [EMAIL PROTECTED]    [EMAIL PROTECTED]    [EMAIL PROTECTED]
PGP key:        http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
The rest of this sentence is written in Thailand, on

Attachment: pgpZnxdnxanaO.pgp
Description: PGP signature

Reply via email to