Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Nov 2002 17:39:09 -0800
From:      "Paul A. Scott" <pscott@skycoast.us>
To:        joe <joe-dated-1037323668.d621ae@dubium.com>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: REASON #7919 NOT to do things as root!
Message-ID:  <B9F2F8BD.F8F5%pscott@skycoast.us>
In-Reply-To: <200211091725.54547.joe@dubium.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Is there anything I can do to recover /etc/passwd

First off, BACKUP EVERYTHING RIGHT NOW!
Seriously, before you do anything else.

Then you can recover your /etc/passwd file by copying /etc/master.passwd to
a temporary place. Edit this temporary file replacing all the encrypted
passwords with a single character '*' and remove fields 5, 6, and 7 then
write this file back out as /etc/passwd.

Paul A. Scott
mailto:pscott@skycoast.us
http://skycoast.us/pscott/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B9F2F8BD.F8F5%pscott>