From owner-freebsd-questions Sat Nov 9 17:39:43 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1344A37B401 for ; Sat, 9 Nov 2002 17:39:43 -0800 (PST) Received: from the-frontier.org (ns1.the-frontier.org [216.86.199.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C54C43E3B for ; Sat, 9 Nov 2002 17:39:42 -0800 (PST) (envelope-from pscott@skycoast.us) Received: from [192.168.66.249] (dhcp-249-66-168-192.the-frontier.org [192.168.66.249]) by the-frontier.org (8.9.3/8.9.3) with ESMTP id RAA12761; Sat, 9 Nov 2002 17:39:09 -0800 (PST) (envelope-from pscott@skycoast.us) User-Agent: Microsoft-Entourage/10.0.0.1309 Date: Sat, 09 Nov 2002 17:39:09 -0800 Subject: Re: REASON #7919 NOT to do things as root! From: "Paul A. Scott" To: joe , FreeBSD Questions Message-ID: In-Reply-To: <200211091725.54547.joe@dubium.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > 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