Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

A script to reset file permissions System
I screwed my OS by doing an APPLY on the top level disk information (command I) as root. Warning - this is extremely dangerous :) and easy if you are root. The apply does a RECURSE, not just apply the change you made, and doesn't warn.

Anyway, there is a Perl script by Larry Prall that reads the BOM, examines the file system and writes a shell script that will correct ownership, protection, and privilege problems.

I haven't run it yet, because an alternate is to just do an Install with the OS X disk (not the Restore CD set, just a regular disk). It will do an upgrade and just correct stuff. It even worked with 10.1.1 against a 10.1.2

This might save your life. Its in PERL, I checked it, but someone might want to do a test run on a scratch installation (I didn't want to risk running it after I managed to get my machine running again!).

[Editor's note: Just for the record, Apple does not recommend running an older-version system CD against a newer installed version; their current advice is that you must reformat and reinstall, which is not really a good choice for many people!]
    •    
  • Currently 1.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[4,689 views]  

A script to reset file permissions | 3 comments | Create New Account
Click here to return to the 'A script to reset file permissions' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to reset file permissions
Authored by: McGuire on Feb 19, '02 08:35:57AM

> [Editor's note: Just for the record, Apple does not recommend running
> an older-version system CD against a newer installed version; their
> current advice is that you must reformat and reinstall, which is not
> really a good choice for many people!]

From experience I can tell you this is NOT the case. Because I spend quite a bit of the time out on the bleeding edge of software I have on more than one occasion had to reinstall OS X because I had messed up. You do NOT have to reformat. I just reinstalled from the OS X 10.1 disk and then went to software updates to get all the patches. It has worked EVERY time and I have never lost any data and never had to reformat.

Michael, :-)



[ Reply to This | # ]
Do I understand this right?
Authored by: talus on Feb 19, '02 12:59:49PM

I'm not sure I get what this does. I ran and installer a while back (some shareware or something) and it screwed up my privileges. I couldn't change anything in the Applications folder. I ended up using "Get Info" by Gideon Software to sort it back out but I'm not sure if I got it set back to factory settings.

Is this script going to do it for me next time (or correct it if I have it wrong right now)?

And which script is it (chkstuff113a)?



[ Reply to This | # ]
Do I understand this right?
Authored by: mervTormel on Feb 19, '02 02:39:45PM

talus, yes, it's chkstuff113a. it contains a couple of scripts and a few good reads, too. note that this kinda stuff is not to be taken lightly. read and understand what it does, then if you unleash it, read the script to see what it is going to do. sanity checks are warranted.

-mt



[ Reply to This | # ]