Re: A stupid thing I've done...

From: Erik Norgaard (norgaard_at_locolomo.org)
Date: 01/23/05

  • Next message: Marty Landman: "Samba - microsoft-ds connection?"
    Date: Sun, 23 Jan 2005 00:51:32 +0100
    To: gregory.nou@metz.supelec.fr
    
    

    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
    _______________________________________________
    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: Marty Landman: "Samba - microsoft-ds connection?"

    Relevant Pages

    • Re: A stupid thing Ive done...
      ... > other needed directories, but later, I wanted to delete them (as root of ... > It asked me if i wanted to overwrite su, so i saw my mistake, and ... can i do something without reinstalling ...
      (freebsd-questions)
    • Re: A stupid thing Ive done...
      ... >> other needed directories, but later, I wanted to delete them (as root of ... >> It asked me if i wanted to overwrite su, so i saw my mistake, and ... can i do something without reinstalling ...
      (freebsd-questions)
    • Re: Removing hackers file
      ... >>But reinstall and get up to date with the security updates. ... >>Note they have root on your machine, and thus they may well know your ... > I am sending this from Windows, but Windows may be compromised too? ... re-install, change all your passwords, and start from scratch. ...
      (comp.os.linux.security)
    • Re: wrong command
      ... Subject: wrong command ... I suggest you reinstall the whole system ... Any good sys admin knows never to use root ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ...
      (RedHat)
    • Re: ftp was hacked
      ... I updated wu-ftp to the latest ... ]>> A few days later I wanted to install a later version of hdparm. ... ]> and see if you can use those tools to make it so root CAN touch it. ... should not have been changed since reinstall. ...
      (comp.os.linux.security)