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

Changed permissions for "everyone" - "no access" on Macintosh HD, no boot.

Hello Everyone,



I was trying to change the permissions on my 24" iMac so that main hard drive would not be visible to everyone that could access my network. Unfortunately, I did not know that changing it would effectively lock out the computer all together. Ok, on to what I've done so far.



First, I booted with the Snow Leopard CD and repaired permissions and repaired the drive as well. Both came back with good reports. Tried to reboot and nothing. Just the gray screen of death with the perpetual wheel.



Second, I restored from a Time Machine backup from the same day I changed the permissions,but from an earlier time. It didn't work and still gave me the gray screen, but I may have been mistaken on what time I actually made the changes. I was going to try a second time, but I don't know if permissions are effected with a Time Machine restore.



Third, I tried running some commands in single user mode. /sbin/mount -uw /, /bin/chmod -R o=r,+X /, /usr/sbin/chown root:admin /, /bin/chmod 1775 /, /bin/chmod -N / I've separated them by comma's here but entered them one at a time in the command prompt. The command /bin/chmod -R o=r,+X / kicked out a bunch of errors in trying to change the permissions on the application Windows Media Player, then gave these two errors. /dev/fd/3: Not a directory, /dev/fd/4: Bad file descriptor. Then it gave a few more permissions errors on some songs. After that, I ran the rest of the commands listed above and rebooted. Again, nothing. Just the same gray screen and wheel.



I've also tried starting into safe mode. The bar comes up on the bottom of the screen but goes away, the OS just hangs at the gray screen. I've even tried running a couple sudo commands; however, I have seemed to have locked myself out of those as well.



I have many more Time Machine backup's to try but I am hesitant as I do not know if the previous permissions are attached to the backup itself, or if the changes I've made to the permissions will remain no matter what backup I restore to. I've scoured the internet in an effort to solve the problem; however, I have been unsuccessful in my attempts. It's a pretty 24" paperweight, and a nice nightlight. I liked it better as a computer though, your help would be much appreciated.

24" iMac, Mac OS X (10.6.6)

Posted on Feb 13, 2011 3:00 AM

Reply
21 replies

Feb 13, 2011 5:40 AM in response to jthedwalker

I don't know if a Time Machine restore will fix the permissions. I can envision it either way, and I haven't tried it to see. But, the way I see it, you have two choices, reinstall snow leopard or restore from Time Machine.
Reinstalling will just replace the system, but since you gave everyone read and execute permissions on all files/folders on the hard drive, all of your home folders are buggered up now as they shouldn't have those permissions. There is a way to [restore home folder permissions|http://reviews.cnet.com/8301-13727_7-10329971-263.html] using the Install Disk. Just use the Snow Leopard installer instead of the Leopard installer as the article states.

Just because everyone had read and execute permissions on the Hard drive didn't give them access over the network. Everyone (others) are others that can log into the system. If people log into the computer with an account that is on that computer, then they have access to whatever that account had access to if physically logged into that computer. If you want to share certain folders, then create a sharing only user and give them specific access to the folders you want to share.

Feb 13, 2011 12:51 PM in response to Barney-15E

Hello Barney,

Thank you for your reply. I'm still working toward fixing this problem. I have tried the commands from the as the article stated; however, sudo commands are not being recognized. I tried running the commands without sudo and it gives me access errors, as expected. I may just run an earlier Time Machine back up from the day before I messed up the permissions if no one can think of anything else. I'm skeptical that it would even work. Thank you for the help.

Feb 13, 2011 2:07 PM in response to jthedwalker

jthedwalker wrote:
. . .
I may just run an earlier Time Machine back up from the day before I messed up the permissions if no one can think of anything else. I'm skeptical that it would even work. Thank you for the help.


Yes, that should work, as long as you do a +Restore System From Backups+ from your Install disc. That will erase your internal HD entirely, and restore everything, including the permissions, from the backup you select.

Note that the dates and times of your backups on the selection window may not be shown in your local time zone; they may be in +Pacific Time.+ See #14 in [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of this forum) for details.

Feb 14, 2011 1:17 PM in response to Pondini

Hello Pondini,

Thank you for your reply. Unfortunately attempting a second Time Machine restore didn't work. I used a backup from the day prior to my permissions fiasco. As it did not work, I would have to assume that permissions are not part of the backup when it is made. Good to know for the future. Aside from any other ideas, I think the only solution is a full reinstall with a subsequent restore from one of my Time Machine backups. I'm still hoping someone can think of an alternative solution. Thank you all for your help.

Feb 18, 2011 1:41 PM in response to jthedwalker

Hello Everyone,

Just in case someone has the same problem I did. This is what FINALLY worked for me. I opened Terminal and entered these two commands.

sudo chflags 0 /volumes/*

sudo chmod a+rx /volumes/*

After that I was up and running again. So, for the record, don't set "no access" on the permissions of a hard drive! That's not good. lol

Feb 6, 2012 11:00 AM in response to jthedwalker

Also, a rant about the whole Get Info interface...


Unix filesystem permissions have a HUGE number of permutations -- read, write, execute, for user, group, other, and every single file can have it's own permissions set differently from any other file. Some unix applications do not run with permissions that are too liberal -- if one of these thinks the permission should be no access to "other" and you do a read-write-execute for everything, then the software will refuse to run. I always *cringe* when I see that "propagate permissions down the directory hierarchy" button -- because if you run it on a big tree, there is no way to return 10s of millions of files to their previous unique permissions, at least not in your lifetime! Also, when people are doing the "give everybody read/write permission" dance, it's often because they need to fix file OWNERSHIP not permissions at all. And the stupid Get Info screen won't let you change the ownership of a file, you have to use Terminal.

Jan 6, 2013 5:46 AM in response to cathy fasano

Agree 100%! There seems to be no helpful instructions on how to manage Sharing & Permissions using the GetInfo panel. I'd like to ensure that my user files are only readable by myself. If I log in with my Admin name and password on Partition #1 and open my home folder, I find that Myself, Staff and Everyone has Read/Write privileges, by default. Is that stupid, or what?


I think so, because if I reboot as admin from Partition #2 that has its own, separate Snow Leopard system, I find to my dismay that I can still see virtually all of the contents of Partition #1, including all of my Partition #1 Admin home folder files!


Again rebooting from Partition 1, when I getinfo on my admin home folder, I could set myself to Read & Write, and set 'Staff' and 'Everyone' to "No Access".


But in the English language, "everyone" means EVERYONE, (which also includes MYSELF, right???) So, if I set Everyone to "No Access", will it remove MY read & write access? Or, If "everyone" REALLY means "everyone else", why didn't they simply call it "everyone else" in the first place?


Next question: Who is "Staff"? Does that include Everyone, or some sub-set of Everyone? Am I, as Admin, part of "Staff"? But it gets even worse: Who is "Unknown User"? I see this appear, sometimes. Really, this is enough to drive a person to consume multiple Margaritas...!!!

Jan 6, 2013 8:14 AM in response to autochthon

Do a search for "OSX Permissions" and start reading, instead of this useless rant. The best way to approach (Unix) Permissions is from the command line (Terminal), not from Get Info Sharing & Permissions, which is oversimplified and can lead to misunderstandings.


It is an extremely complicated subject, but that is no reason to complain that it shouldn't be.

Changed permissions for "everyone" - "no access" on Macintosh HD, no boot.

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