How to reset root passwd FreeBSdD4.7
vd at datamax.bg
Fri Jul 15 10:09:32 GMT 2005
On Fri, Jul 15, 2005 at 12:41:48PM +0300, Peter Pentchev wrote:
> 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.
Yes, ofcourse. I was just mentioning that "Simply editing /etc/passwd
won't do the work".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 155 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20050715/76666f2f/attachment.bin
More information about the freebsd-hackers