From owner-freebsd-questions Sat Nov 9 17:41: 5 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 9FFA637B401 for ; Sat, 9 Nov 2002 17:41:04 -0800 (PST) Received: from mail.gbronline.com (mail.gbronline.com [12.145.226.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC0C943E6E for ; Sat, 9 Nov 2002 17:40:59 -0800 (PST) (envelope-from kdk@daleco.biz) Received: from DaleCoportable [12.145.236.167] by mail.gbronline.com (SMTPD32-7.13) id A8B01D960266; Sat, 09 Nov 2002 19:38:56 -0600 Message-ID: <004501c28859$af4644c0$fa00a8c0@DaleCoportable> From: "Kevin D. Kinsey, DaleCo, S.P." To: "joe" Cc: References: <200211091725.54547.joe@dubium.com> Subject: Re: REASON #7919 NOT to do things as root! Date: Sat, 9 Nov 2002 19:37:07 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 From: "joe" To: "FreeBSD Questions" Sent: Saturday, November 09, 2002 7:25 PM Subject: REASON #7919 NOT to do things as root! > While playing around and trying to set aup a chroot environment > I did the following > cd /home/honza > mkdir {etc,dev,lib,bin,.....} > > cat /etc/passwd | grep honza >/etc/passwd > ^<== location of the > typing oops > The leading "/" was unintended. > > Aaaaaaaaaaaaahhhhh > > Now that everyone has gotten back off their seats from the laughter, on > a more serious note is there anything I can do. Let's pretend I don't > have a backup. ..... ok, now that you've stopped laughing again .... > > Is there anything I can do to recover /etc/passwd > What's in /var/backups? Kevin Kinsey To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message