While restoring files from a Time Machine backup, I got the error message "The operation can’t be completed because you don’t have permission to access some of the items." because of problems with files in one folder. What's the safest way to deal with this?
The folder in question has permissions like:
Andrew-Grimms-MacBook-Pro:kmer agrimm$ pwd /Volumes/Time Machine Backups/Backups.backupdb/Andrew Grimm’s MacBook Pro/2010-12-09-224309/Macintosh HD/Users/agrimm/ruby/kmer Andrew-Grimms-MacBook-Pro:kmer agrimm$ ls -ltra total 6156896 [email protected] 19 agrimm staff 680 18 Jan 2008 Saccharomyces_cerevisiae [email protected] 1 agrimm staff 60221852 4 Aug 2009 hs_ref_GRCh37_chrY.fa [email protected] 1 agrimm staff 157488804 4 Aug 2009 hs_ref_GRCh37_chrX.fa (snip a few files) [email protected] 1 agrimm staff 676063 27 Oct 2009 NC_001143.fna [email protected] 1 agrimm staff 6148 23 Mar 2010 .DS_Store [email protected] 3 agrimm staff 1530 23 Mar 2010 . [email protected] 30 agrimm staff 1054 20 Nov 14:43 ..
Is it ok to do
sudo chmod, or is there a safer approach?
Background: Files within the original folder on my computer also had weird permissions - I suspect I may have used
sudo to copy some files from a thumbdrive onto my computer.
© Super User or respective owner