From owner-freebsd-security Wed Aug 25 15: 0:31 1999 Delivered-To: freebsd-security@freebsd.org Received: from zippy.cdrom.com (zippy.cdrom.com [204.216.27.228]) by hub.freebsd.org (Postfix) with ESMTP id 9B24114F66 for ; Wed, 25 Aug 1999 15:00:24 -0700 (PDT) (envelope-from jkh@zippy.cdrom.com) Received: from localhost (jkh@localhost [127.0.0.1]) by zippy.cdrom.com (8.9.3/8.9.3) with ESMTP id OAA17000; Wed, 25 Aug 1999 14:57:29 -0700 (PDT) (envelope-from jkh@zippy.cdrom.com) To: Uldis Kuplis Cc: freebsd-security@FreeBSD.ORG Subject: Re: undelete In-reply-to: Your message of "Wed, 25 Aug 1999 10:54:34 +0300." <37C3A13A.2A94EDFB@kb.lkb.bkc.lv> Date: Wed, 25 Aug 1999 14:57:28 -0700 Message-ID: <16996.935618248@localhost> From: "Jordan K. Hubbard" Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > User, who was admin, and had wheel group, > deleted /bin; /etc; /var directories from my FreeBSD 3.1. Don't let users, especially users like this, do that. That's the first lesson to be learned here. :) > Can I undelete these directories? > If it possible, then how to do it? No, you should simply reinstall them from a FreeBSD bin distribution (it's just a split, gzip'd tar file and you should be able to figure out how to extract parts of it by reading the tar man page). Directories and files which have been deleted in FreeBSD don't go to a trashcan, they go to the great bit-haven in the sky immediately and there's really no way to bring them back unless you're a Unix filesystem internals whiz and can use fsdb blindfolded. That's definitely not a practical solution in this case and so you'll have to simply restore them. - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message