From owner-freebsd-questions Tue Nov 12 11:34:16 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 D784E37B404 for ; Tue, 12 Nov 2002 11:34:14 -0800 (PST) Received: from dsl-64-128-185-9.telocity.com (dsl-64-128-185-9.telocity.com [64.128.185.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72CDE43E42 for ; Tue, 12 Nov 2002 11:34:08 -0800 (PST) (envelope-from mjoyner2@hq.dyns.cx) Received: (from root@localhost) by dsl-64-128-185-9.telocity.com (8.12.6/8.11.5) id gACJX5hf083297; Tue, 12 Nov 2002 14:33:05 -0500 (EST) (envelope-from mjoyner2@hq.dyns.cx) Received: from imp.hq.dyns.cx (www@dsl-64-128-185-9.telocity.com [64.128.185.9]) by hq.dyns.cx (8.12.6/8.11.5av) with ESMTP id gACJX2AY083288; Tue, 12 Nov 2002 14:33:02 -0500 (EST) (envelope-from mjoyner2@hq.dyns.cx) Received: (from www@localhost) by imp.hq.dyns.cx (8.12.6/8.12.6/Submit) id gACJX0TX083287; Tue, 12 Nov 2002 14:33:00 -0500 (EST) X-Authentication-Warning: imp.hq.dyns.cx: www set sender to mjoyner2@hq.dyns.cx using -f Received: from 64.128.185.9 ( [64.128.185.9]) as user mjoyner2@localhost by imp.hq.dyns.cx with HTTP; Tue, 12 Nov 2002 14:32:58 -0500 Message-ID: <1037129578.3dd1576ae09b9@imp.hq.dyns.cx> Date: Tue, 12 Nov 2002 14:32:58 -0500 From: Michael Joyner To: joe Cc: FreeBSD Questions Subject: Re: REASON #7919 NOT to do things as root! References: <200211091725.54547.joe@dubium.com> In-Reply-To: <200211091725.54547.joe@dubium.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 / FreeBSD-4.7 X-Originating-IP: 64.128.185.9 X-Virus-Scanned: by AMaViS perl-11 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 /var/backups Quoting joe : > 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 > > I just double checked and still seem to have access using other accounts > and I've made a copy of master.passwd in case I "commit" the changes > from passwd. > > -------------------------------------------------------- > Joe Sotham > -------------------------------------------------------- > Christianity got over the difficulty of furious opposites > by keeping them both and keeping them furious. > - G.K. Chesterton > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- FreeBSD System Administrator http://manhattan.hq.dyns.cx/ ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message