Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

intel imac wont start after changing permission

intel imac wont start after i changed my hard drive permission to let me read and write, then i clicked apply to all enclosed files.i turned it off no problem. then it never started up again in os x. the grey screen with apple logo appears,then after a minute it restarts, and will keep doing that if i let it. i can start up in windows xp, but i dont know how to do anything in windows xp that will affect os x. i can use the hard drive in target mode, but i cant figure out how that can help me. i use a macbook to view target disk. ive spent hours looking through help and support. finally i do not have the os install disks. PLEASE HELP!

iMac, Mac OS X (10.7)

Posted on Jul 1, 2012 10:25 PM

Reply
21 replies

Jul 1, 2012 10:34 PM in response to ericgb

What you did you should never ever do, especially when you don't understand the consequences. You may be able to fix things by doing the following:


Boot into single-user mode and at the prompt enter these commands pressing RETURN after each:


mount -uw /

chown root:admin /

chmod 1775 /

reboot


After rebooting Set the following Directory permissions. You can paste these lines or enter by hand, but be careful to enter them correctly.


sudo su


Enter your admin password when prompted. It will not be echoed.


chown root:admin /Applications

chmod 0775 /Applications

chown root:admin /Library

chmod 1775 /Library

chown root:admin /System

chmod 0775 /System

chown root:admin /Users

chmod 0775 /Users

chmod -R -N /Applications

chown -R :admin /Applications/*


I suggest you first print these instructions out using a large mono-spaced font so you can read them correctly. There are spaces in the lines that may not be easily observed.

Jul 1, 2012 10:58 PM in response to ericgb

My apologies for the inept instructions.


Restart normally. Open Terminal in the Utilities folder. Paste the commands in the Terminal application to avoid typos:


sudo su


Press RETURN. Enter your admin password when prompted. It will not be echoed to the screen. Press RETURN again. Now paste each of the following at the prompt and press RETURN after each.


chown root:admin /Applications

chmod 0775 /Applications

chown root:admin /Library

chmod 1775 /Library

chown root:admin /System

chmod 0775 /System

chown root:admin /Users

chmod 0775 /Users

chmod -R -N /Applications

chown -R :admin /Applications/*


Again, my apologies.

Jul 2, 2012 1:36 PM in response to ericgb

Then just reinstall Lion:


Reinstalling Lion Without Erasing the Drive


Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.


Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.


When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.


Reinstall Lion: Select Reinstall Lion and click on the Continue button.


You will need an active Internet connection, and I suggest using Ethernet because it is at least three times faster than wireless.

Jul 2, 2012 6:39 PM in response to MrHoffman

I triied your suggestion but only the grey screen with apple logo appears, then after a minute or two it restarts and will keep on doing that until i turn it off with the power button. I can start up in windows xp or use the imac as a target disk. Is there anything that I might be able to do from either of those places? Thank you for your input.

Aug 20, 2013 6:23 PM in response to Kappy

Dear Kappy,

I am new to the support community so I apologize in advance if I am not following the right etiquette. I did the same thing that ericgb: I changed my hd permissions and now I cannot turn on my Imac. (it has Snow Leopard) I tried to follow your steps and I am able to start in single user mode. I typed

mount -uw /

chown root:admin /

chmod 1775 /

reboot


The problem is that when I reboot again I get to the grey screen and the spinning wheel and that's all. Is there any way to perform the second part of your instructions in single user mode?

So far it seems the only thing I can do. I cannot start from the Install disc either. I'll truly appreciate your help, I know now I should have never change the permissions.... 😟

Aug 21, 2013 7:15 AM in response to gregorioz

If that's exactly what was typed, that's definitely not what Kappy was referencing. That command has changed the root ownership and protections; the top of the whole file system.


If you can't boot single-user again, then probably the easiest approach is to use a cable and a second Mac, and use Target Disk Mode to access the volume from a different Mac to reset the protections back to their expected settings.


On a 10.7 test system, the settings are displayed as follows:


ls -aled@ /


The local 10.7 system shows the following (your date and some sizes will vary) for the modes (the drwx...) and the ownership (root:wheel):


drwxr-xr-x 41 root wheel 1462 Jan 28 2013 /


That's translated into bash as the following two commands to reset the values:


chmod u=rwx,go=rx /

chown root:wheel /


I really wouldn't want the so-called sticky bit set on the root directory; that's the leading 1 bit on that numeric. if the sticky bit really was enabled, the ls display will show a t in the mode display (the rwx stuff), then the following should clear it:


chmod -t /


You'll need to use sudo on the above commands.


FWIW, that chmod syntax shown above is a different (and newer) version of the (older) numeric syntax Kappy is using in the earlier reply.


FWIW, sudo and single-user are good for clobbering stuff. Have a backup before using these tools.


FWIW, this is a different question, and best asked in a new thread.

Aug 21, 2013 11:16 AM in response to MrHoffman

Dear MrHoffman,

Thanks for your help. I was able to use the target mode and I am now backing up some files. I couldn't repair the permissions using the Utility disk. I can perform a repair disk function but the repair permission one is greyed out. (I believe it's because the targeted IMac has Snow Leopard and my laptop is X10.8. I read in some discussions that they should have the same version.

To be honest with you, I don't understand the part of your reply from when you say On a 10.7 test system...


Is any other way I can repair the permissions on target mode other than using the disc utility?

By the way, I am able to turn the computer on single user mode so I could try that approach if I get exact code I need to enter (I've been reading so many different instructions on the matter I am confused)


Or, I guess I should get a computer with Snow Leopard to target my IMac.

Thanks

Aug 21, 2013 11:48 AM in response to gregorioz

The settings on the root directory of the original disk were corrupted by those commands.


If those commands were also run recursively (the -R switch was specified on the commands) and the commands updated the whole file system, that'll be a bigger problem. If there's no backup that can be restored, then this will likely involve writing some scripts to update the settings on the user files, and (probably the easiest approach) reinstalling OS X onto the disk. (This is a much bigger effort than just fixing the top of the file structure; the settings vary widely across the files in the file system; the ownerships and the access control modifier bit masks.)


You'll need to modify the settings on the root directory of the TDM disk, not on the root directory of the Mac that's working. That means mounting the disk and updating the settings in the /Volume directory. (What I posted would only be applicable with the disk local to the original system and not TDM, as / is the root of the whole file system on the current, local Mac. Other disks are brought online in the /Volumes directory, and you'd want to find and fix the settings there.)


Disk Utility Repair Permissions might help, but you'll want to boot the recovery partition and not Target Disk Mode to get to that; that'll get you access to Disk Utility from the local disk. Press and hold ⌘R at bootstrap, and use Disk Utility from there.


If that fails, get help. You're into Unix and file systems pretty deeply here, and the disk is already hosed, and errors with these or other Unix-level commands could well corrupt the other Mac.

intel imac wont start after changing permission

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.