Blog Index
The journal that this archive was targeting has been deleted. Please update your configuration.
Navigation
« Estimating: or how to explain your time before spending any at all | Main | Easing Launch Stress »
Tuesday
Aug302011

Fixing Quarantined Files on OSX

I downloaded a new framework file, copied into my working directory and setup the site in hosts and vhosts, but it was still returning a 403 error with no permission to access the specified directory.

Running a ls -al on the directory showed an '@' symbol at the end of the permissions settings on each file. A bit of searching indicated that this could be the operating system placing a quarantine on downloaded files.

When you download a file from the internet and then run the code it displays an alert window before letting you run it. You have seen the window:



To check if your files suffer from this quarantine, while on the Terminal run:

xattr -l Minuteur5f.zip

This will display the extended attributes of the file. In that list there should be the quarantine code followed by some information:

com.apple.quarantine:

To remove the attribute run:

xattr -d com.apple.quarantine _your_file_name

I am unsure if this was the permissions issue I was having with my local development, but I updated my files by running this on the folder and it started working.

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>