Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I accidentally entered sudo chmod 600 -R / when I meant to enter /Documents/some_file and now everything comes up as permission denied. The root password isn't working. All my applications are shut down and basically my whole laptop does not have any permissions to do anything.

I have a macbook pro with Mountain Lion installed. I don't have a disk for the OS. Any help is appreciated. Thanks!

share|improve this question
2  
I'd suggest it is time to use the backups you made to restore the filesystem and reverse the permission changes. –  mdpc Dec 24 '12 at 6:58

4 Answers 4

There's basically not a lot you can do at this point.

Your first port of call would be to boot into Recovery mode by holding CmdR during startup. From there, you can open Disk Utility, and try to verify permissions. Note though that the permissions changed by this procedure do not incldue all permissions on your system. So, that will probably not help.

Through recovery, you can reinstall OS X from scratch without needing a disc or flash drive containing the OS – it'll simply download everything from the Internet. See this Apple support article for more. This will not remove your user's files but only replace system files. Chances are good that after the 4GB download and installation, you can at least boot into your system again. You could then run a Repair Permissions from Disk Utility again.

That, or restore from your Time Machine backups, of which I'm sure you've made one, right?

share|improve this answer
    
Isn't there a Terminal in Recovery mode? –  Daniel Beck Dec 24 '12 at 10:48
    
There might be (I've never had to use it), but I don't think that'd be of much use if the OP recursively overwrote the permissions of the whole root directory. Is there anything I'm missing? –  slhck Dec 24 '12 at 10:53
    
AFAICT, most files/folders should be 755/644, with the exception of home directories and some files/folders in /etc. But it's much more effort than just restoring from backup... –  Daniel Beck Dec 24 '12 at 10:56
    
Thanks so much! I am reistalling the OS through recovery mode. Hopefully it'll work! –  Vipul Shah Dec 24 '12 at 18:33

There is nothing you can do apart from Disk Utility / Repair Permissions MAY revert the changes to correct permissions - otherwise a Time Machine backup.

share|improve this answer

Theoretically, you could take apart your laptop, remove the hard disk, connect it to a working computer (i.e., as an external hard drive), boot, and fix it from there.  But it is probably more practical to reinstall your OS.

share|improve this answer

You can boot a Linux Live CD mount your hard drive there and change permissions.

share|improve this answer
    
You can use a standard Linux CD to repair problems on a MAC disk? Interesting..... –  mdpc Dec 24 '12 at 7:36
    
Only if that live cd can read the file system. –  JoshRagem Dec 24 '12 at 7:46
    
-1 Good luck reading the file system. –  ta.speot.is Dec 24 '12 at 9:04
    
@ta.speot.is HFS+ file systems can easily be read by a Linux machine. –  slhck Dec 24 '12 at 10:54
    
yes you can boot linux on mac. also you can mount HFS+ (apples file system) on linux. –  daya Dec 24 '12 at 12:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.