image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old April 5th, 2002, 12:00 PM
Registered User
 
Join Date: Apr 2002
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
macscience is on a distinguished road
Exclamation Changed permissions on "System" Directory!!

HELP! Reset Permissions on "System" directory

I know this is stupid but....

I accidently changed permissions on the "System" directory and all sub directories to "none" using the Super Get Info app. Right after the change - no apps will launch and I cannot change the permissions back. OS X freaked out and the finder quit. I tried to reboot and nothing... it won't get past the smiling Mac icon. I restarted in OS9 and that is where I am now. Does anyone know how to fix this? How can I fix the permissions on the "System" directory??

What are the commands I need to use in the "Single User Mode" to do this??

Help!
Reply With Quote
  #2  
Old April 5th, 2002, 01:28 PM
Registered User
 
Join Date: Apr 2002
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
macscience is on a distinguished road
Could I possibly use the Mac OS 10.1 updater CD and re-update the OS? Would this work?
Reply With Quote
  #3  
Old April 5th, 2002, 01:39 PM
genghiscohen's Avatar
Membrum virile
 
Join Date: Sep 2001
Location: Sea of Tranquility
Posts: 805
Thanks: 0
Thanked 0 Times in 0 Posts
genghiscohen is on a distinguished road
You should be able to simply reinstall on top of your existing OS X, as long as you make sure to also reinstall all the updates since 10.1. Although Apple advises against this, I know people who have done it with no (apparent) ill effects.
__________________
--
"No left turn unstoned."
(PowerBook 15" 1.5 GHz/80/1.5 GB, eMac 1 GHz/80/768 MB, SuperDrive, 250 GB FireWire HD, Lexmark Z65 printer, Epson Perfection 1200U scanner)
Reply With Quote
  #4  
Old April 5th, 2002, 02:09 PM
simX's Avatar
Unofficial Mac Genius
 
Join Date: Sep 2001
Location: Bay Area, CA
Posts: 2,183
Thanks: 0
Thanked 0 Times in 0 Posts
simX is on a distinguished road
Wait! Wait! I have another suggestion before you go reinstalling!

Go here: http://homepage.mac.com/simx/.cv/sim...sit-binhex.hqx

It'll download a command-line utility that will help you set permissions back to what they originally were.

Quote:
Here's a perl script that was advertised on MacFixIt.com a week or so ago, that resets all default installed files to their original permissions. Obviously, this script can become VERY handy, and I suppose that it could be very useful in your situation. This perl script actually examines log files in the installers and sets permissions to what they should be.

I did not create this script, but I'm providing it as a download from my iDisk. Here's the URL:

http://homepage.mac.com/simx/.cv/sim...sit-binhex.hqx

This script has been updated for OS X 10.1.3, but when a new version of Mac OS X comes out, I would advise you to wait to run it until chkstuff gets updated for that version of the operating system.

Once you download it, open the folder "chkstuff115". Then open the Terminal application (/Applications/Utilities/Terminal). Now, once the Terminal finishes opening, type "sudo " with the trailing space. Now drag the file "chkUGM" from the Finder window to the Terminal window. Then press return. The Terminal should ask for your password. This is a completely safe script, and it actually does not modify anything at this point. It will just create a command file that shows discrepancies in permissions. So type in your password and press return (note nothing will show up when you type your password for security reasons). It will start doing its stuff.

Once it's done (you'll see the prompt again, which in my case is: [a0c3:~] simsimbean%), it will have created a temporary file that is the command file to change permissions back to the default. First, you may want to examine the discrepancies. To do this, type the command more /tmp/fixUGM.sh in the terminal. Press return, and you can examine the commands that this file will execute -- incidentally, the path to each file that has incorrect permissions is listed, so you can see exactly which files are modified. You can advance the displaying either by pressing space (which will advance the file by one page) or by pressing return (which will advance the file by one line). It should tell you how far through the file you are by the bottom line of the terminal window, which shows you the percentage of the file you have already viewed.

There will also be a file called "missing_files.txt" which tells you which files you are missing from the default installation of Mac OS X. You can also use the command more /tmp/missing_files.txt to see what files you are missing. This might not be a problem, but it's just some nice info.

If you are satisfied with the files it has listed, you can go ahead and run this script. Simply type the command cd /tmp; sudo ./fixUGM.sh, all on one line, and press return. It will again ask you for your password. Once you give the terminal your password and press return, it will start modifying the files to their original permissions. It will notify you when it's done.
__________________
-- simX

Get Memory Usage Getter, the only Mac OS X utility that graphically displays the memory usage of your open processes! http://homepage.mac.com/simx/

450 MHz G4 Cube | 15" flat-panel Apple Studio Display | 896 MB RAM | Que! Fire 12x10x32x FireWire CD-RW | OS X 10.1.5 Build 5S66 | Mac OS 9.2.2 | Telex M-560 Microphone | Epson Stylus Color 777 | TI-Graph Link USB | Pro Speakers/Mouse/Keyboard | Airport card | iPod

"Some people's minds are like cement: all mixed up and permanently set..." -- Andrew Welch, el Presidente, Ambrosia Software, Inc.

"You know that first hit of heroin is free." -- Scott McNealy, Sun Microsystem's CEO, on Microsoft's .NET .

"The day Microsoft makes a product that doesn't suck is the day they start making vacuum cleaners." -- Unknown
Reply With Quote
  #5  
Old April 5th, 2002, 02:23 PM
Registered User
 
Join Date: Apr 2002
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
macscience is on a distinguished road
How do I use this if I cannot startup normally?
I can only startup in single user mode or in OS 9...
Reply With Quote
  #6  
Old April 5th, 2002, 04:28 PM
nkuvu's Avatar
Gone
 
Join Date: Mar 2002
Posts: 1,566
Thanks: 0
Thanked 0 Times in 0 Posts
nkuvu is on a distinguished road
Is it just me, or does Disk First Aid have a scary acronym?

Disk First Aid => DFA => Death From Above...?
Reply With Quote
  #7  
Old April 5th, 2002, 04:31 PM
genghiscohen's Avatar
Membrum virile
 
Join Date: Sep 2001
Location: Sea of Tranquility
Posts: 805
Thanks: 0
Thanked 0 Times in 0 Posts
genghiscohen is on a distinguished road
Somebody has a morbid mind. Why not DFA = Dear Friends All?
__________________
--
"No left turn unstoned."
(PowerBook 15" 1.5 GHz/80/1.5 GB, eMac 1 GHz/80/768 MB, SuperDrive, 250 GB FireWire HD, Lexmark Z65 printer, Epson Perfection 1200U scanner)
Reply With Quote
  #8  
Old April 5th, 2002, 11:45 PM
simX's Avatar
Unofficial Mac Genius
 
Join Date: Sep 2001
Location: Bay Area, CA
Posts: 2,183
Thanks: 0
Thanked 0 Times in 0 Posts
simX is on a distinguished road
Quote:
Originally posted by macscience
How do I use this if I cannot startup normally?
I can only startup in single user mode or in OS 9...
You should still be able to use it. Just start up in OS 9, download it, and put it at the root level of your OS X partition/drive. That way it will be easy to find.

Then start up in OS X in single user mode, and follow the steps that I outlined.

Assuming that you put the "chkstuff115" folder at the root level of your OS X partition, you would do these commands in single user mode:

1. First, do the command "sudo /chkstuff115/chkUGM". It should ask for your password and make the command file.

2. Then you can do the "cd /tmp; sudo ./fixUGM.sh" command. Of course, you can always do the "more /tmp/fixUGM.sh" first, to see what's going to be changed.

Hope this helps!
__________________
-- simX

Get Memory Usage Getter, the only Mac OS X utility that graphically displays the memory usage of your open processes! http://homepage.mac.com/simx/

450 MHz G4 Cube | 15" flat-panel Apple Studio Display | 896 MB RAM | Que! Fire 12x10x32x FireWire CD-RW | OS X 10.1.5 Build 5S66 | Mac OS 9.2.2 | Telex M-560 Microphone | Epson Stylus Color 777 | TI-Graph Link USB | Pro Speakers/Mouse/Keyboard | Airport card | iPod

"Some people's minds are like cement: all mixed up and permanently set..." -- Andrew Welch, el Presidente, Ambrosia Software, Inc.

"You know that first hit of heroin is free." -- Scott McNealy, Sun Microsystem's CEO, on Microsoft's .NET .

"The day Microsoft makes a product that doesn't suck is the day they start making vacuum cleaners." -- Unknown
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
as root changed Drive Permissions! BAD! HELP! DarkPulse Unix & X11 2 February 12th, 2003 02:56 AM
I installed Fink under root and..... Hydroglow Unix & X11 5 November 27th, 2002 04:57 PM
UNIX related things... (tr, cut, awk, and permissions) simX Apple News, Rumors & Discussion 5 December 19th, 2001 03:33 AM
"System" directory hosed by failed XTools install cedmonds Mac OS X System & Mac Software 0 March 29th, 2001 08:23 PM


All times are GMT -5. The time now is 06:00 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.