A stupid thing I've done...

From: Gregory Nou (gregory.nou_at_supelec.fr)
Date: 01/23/05

  • Next message: Nick Pavlica: "FreeBSD 5.3 I/O Performance / Linux 2.6.10 | More Info"
    Date: Sun, 23 Jan 2005 00:37:04 +0100
    To: freebsd-questions@freebsd.org
    
    

    Hi !
    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)

    Thanks a lot ...

    -- 
    Grégory Nou
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Nick Pavlica: "FreeBSD 5.3 I/O Performance / Linux 2.6.10 | More Info"

    Relevant Pages

    • Re: HELP! cant become root
      ... Or, boot a rescue cd/environment such as knoppix, mount your root ... partition and do a chroot into there, do whatever needed to clean up. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: removing a chroot directory
      ... This is what I did (as root) ... Is it safe to simply say 'rm -rf /var/chroot' outside this directory, ... mounted anything in the chroot yet. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • chroot weirdness with hostnames
      ... If I use schroot as a mortal, ... hostname, but if I change to the chroot as root, or su to root inside ... I see the original hostname. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: qemu-make-debian-root problem
      ... | I: Extracting util-linux... ... run chroot for which you need to be root. ... Even if i run it as root, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: sys_chroot+sys_fchdir Fix
      ... I don't hope to secure Linux ... within chroot, simply to fix chroot so that it does what it says it ... new root, dot-dot is promised to keep you within that root; ... So the OpenBSD man page seems to be in the minority here. ...
      (Linux-Kernel)