Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

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

Time Machine Permissions Problem

I have just tried the following on a completely new system running Mountain Lion:


1. Installed a new Time Capsule.

2. Selected Time Machine and told it to complete a backup to that Time Capsule (using my user name, which has admin privlidges). The backup worked perfectly.

3. Selected one of my personal data files within Time Machine and attempted a restore.

4. It then said I cannot do that because I "don't have permission to access that file".

5. I checked the files (a) I have full read/write access to the file and (b) the permissions in the Time Machine version match the version in my file system.


So:


1. This is nuts and why is it so?

2. How do I fix this completely clean installation so that I can actually restore files with Time Machine?


Thanks :-)

MacBook Pro with Retina display, OS X Mountain Lion

Posted on Jul 26, 2012 5:56 AM

Reply
13 replies

Jul 26, 2012 8:52 AM in response to David Cittadini

David Cittadini wrote:

. . .

2. Selected Time Machine and told it to complete a backup to that Time Capsule (using my user name, which has admin privlidges).

Doesn't matter what user account you use to set it up, since Time Machine backups run as the "root" user (permission to everything) and backs up all user accounts, plus OSX, apps, etc.



3. Selected one of my personal data files within Time Machine and attempted a restore.

That's via the TM browser (the "Star Wars" display), right?


4. It then said I cannot do that because I "don't have permission to access that file".

Are you sure you were logged-on to the correct user account? If you have more than one, Time Machine enforces permissions -- so one user, even an Admin user, won't normally have access to another user's files.



If that's all correct, then yes, something is wrong somewhere. Try some other files, in other places -- see if it's limited to that one file. If you have more than one user account, try logging-on to one of them and restoring some of it's files.

Jul 26, 2012 9:10 AM in response to Pondini

To answer your questions:


1. Yes, the restore was via the "Star Wars" display.

2. Yes, I logged onto the correct user account. The full backup and attempted restore were done without logging out at all.

3. I have the same problem with every file in the backup.

4. I tried it with another user. That did work and interestingly it asked for a password, which it does not do when I try to restore a file from my "standard" user.


I am very familiar with technologies, I work in IT, and I have absolutely no idea why a clean backup and restore straight away does not work. My only solution so far is to either (a) use cp -R and manually copy the files from the backup or (b) restore to a Disk Image and copy from there. The Time Machine looks perfect, something somewhere must be screwing up the permissions but I cannot see where or how :-o

Jul 26, 2012 9:25 AM in response to picman0121

Thanks for the note. Yes, I have done that. Have also rebooted using the Recovery Drive and reset the Home Directory permissions and that did not fix the problem either. After my first failure to restore I completely checked/repaired all the permissions and deleted the Time Capsule of all backups and started completely from scratch. The system had exactly the same problem after the "cleanup" as before. That is why it does not seem right...

Jul 26, 2012 9:31 AM in response to David Cittadini

No, it's clearly not right. And I've never seen this issue posted here, either.


Seems to be something wrong with that home folder itself.


We do see some sort of damage to them occasionally, where Time Machine either backs-them up entirely on every backup, or won't back them up at all. In those cases, the only fix seems to be to copy everything to a different user account.


If you're comfy with UNIX, you might compare the extended attributes of the two home folders. Although the reset of home folder permissions is also supposed to reset ACLs, you might compare them, also.


Deep in the weeds, here. 😟

Jul 26, 2012 9:14 PM in response to Pondini

"..you won't have to copy everything". Whoops I was too late, I have now done this.


OK, this next bit also totally surprises me. I created a new user and copied across all the data files, Library files etc. As soon as I logged into the new user Time Machine came up with a message saying that my existing backup was invalid and that it needed to delete all my backups and create a new one from scratch. That was a total surprise because that is exactly what I had been doing under the previous user. So, I let Time Machine do it again (which took about 9 hours). After that...well...my restores work perfectly!!! Obviously there was something with the previous user that Time Machine did not like. However, Time Machine could not repair itself until a new user was created and it could undo/redo everything. Certainly an extraordinary turn of events and I cannot technically explain any of it. Weird how Time Machine found a problem and reset itself....I wonder what that was...

Jul 26, 2012 10:04 PM in response to Pondini

Oh....that is shortcut for "we know that there is a problem, we think it is our fault but we are not going to tell you about it, the solution is to wipe everything and we will see if we get it right the second time".


So, the summary is:


- Time Machine may create a corrupt backup bundle for a user.

- This corruption will continue to happen, even if you delete the backup and restart/reinitialize Time Machine backups.

- The corruptions manifest themselves when you try to restore - you will receive error messages saying you do not have permission to restore from backup.

- The solution is to completely delete the affected user, create a new user and copy your old data into this new user.

- Delete the old user.

- Time Machine will recognise the error of its ways and will request that it delete all backups and start again. This should fix the problem.


That seems to be the summary.

Jul 27, 2012 7:41 AM in response to Pondini

I am more than happy to use Time Machine; it is nicely integrated with all the Apple products, it is easy to use, you can get under the covers and resolve more technical aspects if you need to, there are a huge number of people using it, it is simple, it has most of the features that most people would want. The particular problem above is pretty left feild but one never stops using a product because of that (if you did, there would be nothing left to use). I like the fact that you are able to go in and troubleshoot. My only wish is that someone had found this problem/solution earlier so that I could have been extremely lazy and just followed the workaround, rather than having to wake up and do some thinking myself :-)

Time Machine Permissions Problem

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