Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

agdgdgdgwngo Group Title

So I've deleted libc.so. Luckily, I still have a running bourne-again shell. How do I save my system?

  • 2 years ago
  • 2 years ago

  • This Question is Closed
  1. farmdawgnation Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    I would advise you to reboot into a LiveCD and restore libc.so using that.

    • 2 years ago
  2. shadowfiend Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Step 1: stop running rm in system folders ;)

    • 2 years ago
  3. shadowfiend Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Step 2: heavily consider never running rm as root or sudo unless 100% absolutely unavoidable :p

    • 2 years ago
  4. shadowfiend Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Step 3: what @farmdawgnation said :p

    • 2 years ago
  5. MuH4hA Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Why would you do that as a first step and not just try to reinstall you glibc-package, @farmdawgnation ?

    • 2 years ago
  6. farmdawgnation Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    Because the package manager will probably try to load glibc to run, and not finding it will likely fail.

    • 2 years ago
  7. MuH4hA Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Still - trying it would take about .. idk.. 5 seconds? Maybe 10, if he's a slow typist and it's possible, the thing is still in his memory.. or was - now he's probably rebooted (and hopefully fixed it) already. Anywho - I didn't mean to criticize, but was just wondering if there was another reason aside from the one, you mentioned..

    • 2 years ago
  8. farmdawgnation Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    Not really. It may help keep in mind that I do love systems security though. So, whether or not a failure in the system was caused by a security breach my first instincts are *always* to boot into an isolated environment and troubleshoot from there.

    • 2 years ago
  9. agdgdgdgwngo Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Btw, what is so special about libc that virtually nothing runs without it, or everything runs better if it's upgraded?

    • 2 years ago
  10. shadowfiend Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    libc is the C standard library. There is very little software that doesn't use it on some level. These are things like the implementation of printf and scanf; sqrt, pow, and other math functions; random number generators; strncmp, strncpy, and other basic string functions; malloc and free (!!); and a bunch of other stuff. Even things like the JVM tend to be written in C at their core, so the vast majority of software ends up loading lilbc.

    • 2 years ago
  11. agdgdgdgwngo Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Does Windows have a libc.so equivalent?

    • 2 years ago
  12. agdgdgdgwngo Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    btw how do I compile my own libc.so? Where's the source code for libc?

    • 2 years ago
  13. shadowfiend Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    Source for GNU libc: http://www.gnu.org/software/libc/download.html MS equivalent is msvcrt, I believe. On Windows, it's not abnormal for software to bundle a copy of msvcrt though, so it's harder to hose yourself by deleting one file. Still, the core Windows binaries are probably linked with the system msvcrt, so the above rules apply there as well ;)

    • 2 years ago
  14. farmdawgnation Group Title
    Best Response
    You've already chosen the best response.
    Medals 1

    You could equally hose yourself by deleting Win32.dll though. :D

    • 2 years ago
  15. rsmith6559 Group Title
    Best Response
    You've already chosen the best response.
    Medals 0

    I'll bet this won't work, but you're learning it the hard way, restore it from your backup. Stuff happens.

    • 2 years ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.