Originally posted by jbonta:
In trying to back my files up, I made the mistake of backing up my library folder to a FW drive using "cp -R /Library/ ." Many of my files, like fonts and final cut pro pluggins and other applications that I backed up in this manner do not work now and have turned into unix executable files. Is there a way to restore these files into useable pluggins and applications? Did I lose any data? Thanks for your help.
I don't think you *lost* any data... you most likely just *altered* it. If you did executed the command as a different user, say root or admin, it would alter the file permissions and ownership on the copied programs. And/or if you restored them back as a different user. This is normal Unix behavior for the cp command. If you read the man page for cp you will see that you should have probably used the -p option to cp in order to preserve the permissions and ownership and whatnot. Something like:
cp -Rp /Library/ .
The problem is how to *fix* the permissions (if that is the problem). The diskutil "repair permissions" may help you here but I am not sure about that. I am not sure if it fixes permissions on files in a users home folder... just the files outside of that.
In any case... do an:
ls -al /Library/
All the files and folders should be owned by "root admin" with the exception of the Internet Search Sites folder. Mine looks something like this:
Code:
ls -l /Library/
total 0
drwxrwxr-x 9 root admin 306 Jul 17 18:21 Application Support
drwxrwxr-x 8 root admin 272 Dec 11 11:07 Audio
drwxrwxr-x 3 root admin 102 Nov 12 2002 CFMSupport
drwxrwxrwt 27 root admin 918 Jan 11 14:30 Caches
drwxrwxr-x 5 root admin 170 Jul 27 2002 ColorSync
drwxrwxr-x 27 root admin 918 Jul 14 2002 Desktop Pictures
drwxrwxr-x 10 root admin 340 Jan 10 1970 Documentation
drwxrwxr-x 3 root admin 102 Sep 11 2001 Filesystems
drwxrwxr-x 82 root admin 2788 Jul 18 2002 Fonts
drwxrwxr-x 3 root admin 102 Nov 12 2002 Frameworks
drwxrwxr-x 3 root admin 102 Jul 29 2002 Image Capture
drwxrwxr-x 9 root admin 306 Dec 11 11:06 Internet Plug-Ins
drwxrwxrwx 4 physicst admin 136 Dec 17 2001 Internet Search Sites
drwxrwxr-x 4 root admin 136 Aug 18 23:10 Java
drwxrwxr-x 2 root admin 68 Jul 27 2002 Keyboard Layouts
drwxrwxr-x 6 root admin 204 Jan 11 14:28 Logs
drwxrwxr-x 160 root admin 5440 Apr 9 2003 Modem Scripts
drwxrwxr-x 7 root admin 238 Jan 11 20:29 Perl
drwxrwxr-x 19 root admin 646 Jan 13 18:47 Preferences
drwxrwxr-x 9 root admin 306 Feb 11 2003 Printers
drwxrwxr-x 2 root admin 68 Dec 11 11:05 QuickTime
drwxrwxrwx 128 root admin 4352 Jan 11 14:39 Receipts
drwxrwxr-x 2 root admin 68 Sep 14 2001 Screen Savers
drwxrwxr-x 15 root admin 510 Apr 9 2003 Scripts
drwxr-xr-x 5 root wheel 170 Jan 11 14:39 StartupItems
drwxrwxr-x 7 root admin 238 Jul 14 2002 User Pictures
drwxrwxr-x 4 root admin 136 Jul 29 2002 WebServer
drwxrwxr-x 3 root admin 102 Dec 8 2001 eSuite4X
If yours is not similar you will have to fix it. Hmmm... come to think of it. /Library/ IS a system folder (I was thinking of /Users/userid/Library/). So just run the "repair permissions" tool in diskutil.