Date: Tue, 12 Nov 2002 14:32:58 -0500 From: Michael Joyner <mjoyner2@hq.dyns.cx> To: joe <joe-dated-1037323668.d621ae@dubium.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: REASON #7919 NOT to do things as root! Message-ID: <1037129578.3dd1576ae09b9@imp.hq.dyns.cx> In-Reply-To: <200211091725.54547.joe@dubium.com> References: <200211091725.54547.joe@dubium.com>
next in thread | previous in thread | raw e-mail | index | archive | help
/var/backups
Quoting joe <joe-dated-1037323668.d621ae@dubium.com>:
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1037129578.3dd1576ae09b9>
