Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Mar 2007 06:49:02 +0100
From:      Soeren Straarup <xride@x12.dk>
To:        Derekj Tourneo <derekj@tourneo.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: One method to recover a lost root password
Message-ID:  <20070317054902.GB2108@x12.dk>
In-Reply-To: <000001c7680c$0a7255f0$0dd3000a@homexp>
References:  <000001c7680c$0a7255f0$0dd3000a@homexp>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 16, 2007 at 08:45:30PM -0000, Derekj Tourneo wrote:
> now edit the master password file
> 
> 	vi /mnt/etc/master.passwd

Try: vipw -d /mnt/etc
It automaticly updates the right db(s)

Futher reading: man 8 vipw

/Soeren

-- 
Soeren Straarup   | aka OZ2DAK aka Xride
FreeBSD committer | FreeBSD since 2.2.6-R
  If a program is not working right, then send a patch



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