From owner-freebsd-questions@FreeBSD.ORG Sat Jan 22 23:51:37 2005 Return-Path: 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 BB6FB16A4CE for ; Sat, 22 Jan 2005 23:51:37 +0000 (GMT) Received: from top.daemonsecurity.com (FW-182-254.go.retevision.es [62.174.254.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 350B043D31 for ; Sat, 22 Jan 2005 23:51:37 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [192.168.0.32] (charm.daemonsecurity.com [192.168.0.32]) by top.daemonsecurity.com (Postfix) with ESMTP id E5A54FD020; Sun, 23 Jan 2005 00:51:35 +0100 (CET) Message-ID: <41F2E704.4050405@locolomo.org> Date: Sun, 23 Jan 2005 00:51:32 +0100 From: Erik Norgaard User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041114 X-Accept-Language: en, en-us, da, it, es MIME-Version: 1.0 To: gregory.nou@metz.supelec.fr References: <41F2E3A0.1040103@supelec.fr> In-Reply-To: <41F2E3A0.1040103@supelec.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: A stupid thing I've done... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jan 2005 23:51:37 -0000 Gregory Nou wrote: > I've tried to chroot an user, so i create /home/this_user/usr and the > other needed directories, but later, I wanted to delete them (as root of > course) and i typed rm -r /usr instead of rm -r usr ... > It asked me if i wanted to overwrite su, so i saw my mistake, and > cancelled, but i don't have adduser, man, ee and ... make anymore ! > How can I repair that ? can i do something without reinstalling > everything ? (I need at least make... and I'm quite reluctant at > compiling /usr/src/usr.bin/make ... So i hope there is another way) Not only do you need make, but also gcc and other utilities. I would consider /usr wiped, even if you still have "su". You might find relief in /rescue or /stand/sysinstall. You won't reinstall the whole system creating slices and labes and all that, but you will most likely need to reinstall a lot though. Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2