Got com.apple.quarantine problems?

Today after uploading a WP site to my server I received a pretty strange error that I hadn’t seen before.

Mac OS X     2��ATTRV(D��-�-com.apple.quarantineq/0000;4c9151bf;Firefox;|org.mozilla.firefox

Well after a bit of digging around I found this….

http://support.apple.com/kb/HT3662

Turns out that in 10.5 or 10.6 whenever a file is downloaded into the Download folder is is marked with a quarantine attribute until it is opened and “cleared” by the user.  If you go into the shell and do a ls -la you will an @ next to the file permissions.  Sometimes, though, the attribute isn’t room.  Luckily it’s rather easy to remove.

xattr -r -d com.apple.quarantine file-path

The -r attribute does a recursive search of the directory.  Note this command is only installed on OS X as far as I’m aware.

This entry was posted in Featured, OS X, Wordpress and tagged , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

3 Comments

  1. Posted November 30, 2010 at 12:43 pm | Permalink

    Thanks for posting this. I had the same issue with a WP plugin on a site that is still in development (local Linux server with my Lin user directory mounted on my Mac).

  2. Posted February 24, 2011 at 11:41 am | Permalink

    Hi there, If you need to do this recursively, try this (-type f being files and -d, directories);

    find . -type f -exec xattr -d com.apple.quarantine {} \;
    find . -type d -exec xattr -d com.apple.quarantine {} \;

  3. Posted August 20, 2012 at 3:36 pm | Permalink

    My Linux webserver doesn’t have the “xattr” command. Here’s the error… any ideas?

    xattr: No such file or directory

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>