Skip navigation

deleted /etc

984 Views 5 Replies Latest reply: May 11, 2011 7:27 PM by Topher Kessler RSS
uwes98 Calculating status...
Currently Being Moderated
May 11, 2011 5:34 AM

I was removing an old Matlab install and instead of clearing out  ~/etc I mistakenly removed /etc. Now Terminal (and heaven knows what else) are not functional. One solution I saw to the error message I received (something about setting an invalid owner) was to repair that's running while I'm at work.


Just curious what else I might need to do. I think someone else at work is running 10.6 so I wonder if simply copying his /etc and plopping it onto my system will work.




iMac, Mac OS X (10.6.7)
  • edclange Level 3 Level 3 (895 points)
    Currently Being Moderated
    May 11, 2011 6:44 AM (in response to uwes98)

    /etc is included in your Time Machine backup.  You'll probably need to boot from a Snow Leopard DVD in order to restore it.  I'm surprised your machine is still running at all without an /etc directory.  If you don't have a backup, then you're doing it wrong, and you need to start maintaining a backup.


    Copying /etc from another machine will probably make things worse.  A lot of stuff that's specific to your machine (such as user account and password information) is stored in /etc.  If you don't have a backup, and if all of your important data is stored in your home folder, you can attach your iMac to another Mac using Target Disk Mode and copy your entire home folder to the other Mac.  Then reinstall Snow Leopard on your iMac and copy your home folder back.

  • Topher Kessler Level 6 Level 6 (9,305 points)
    Currently Being Moderated
    May 11, 2011 3:57 PM (in response to uwes98)

    Most of the items in the /etc folder will not be regularly updated, so a restore from a couple of days ago should be just fine unless in that time you performed some major system configuration changes.

  • Topher Kessler Level 6 Level 6 (9,305 points)
    Currently Being Moderated
    May 11, 2011 7:27 PM (in response to uwes98)

    Glad it worked, as it should for a single-account setup; however, copying directly in the Finder like that may change ownership and permissions for some items. Using the restore feature of Time Machine will preserve these file attributes, though in this case its clear that using Time Machine would have been difficult without knowing how to have it target hidden files.


    You might consider running a Permissions Fix routine with Disk Utility to restore the default ownership and permissions attributes to the /etc folder and its contents.


More Like This

  • Retrieving data ...

Bookmarked By (0)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.