Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Completely disable quarantine of downloaded files System
Starting in Leopard (I believe) when you open a file downloaded from the web, OS X asks if you really mean it. While it is intended to stop maliciousness, it is only a source of aggravation for me. While there are some hints here on working around it, it turns out that you can disable it completely using a Terminal command:
defaults write com.apple.LaunchServices LSQuarantine -bool NO
After that, reboot, and you should be set. (If you want to disable quarantine for files already downloaded, you can run this in 10.6 : xattr -d -r com.apple.quarantine ~/Downloads. In 10.5, you need to use this instead: find ~/Downloads -type df -exec xattr -d com.apple.quarantine {}.)

The credit for this tip should really go to Jonathan 'Wolf' Rentzsch, who published it on his Tumblr. He, in turn, credits Ken Aspeslagh with telling him about the defaults write via Twitter.

[robg adds: This should work in 10.5 and 10.6, though I haven't tested it myself.]
    •    
  • Currently 3.79 / 5
  You rated: 2 / 5 (58 votes cast)
 
[47,110 views]  

Completely disable quarantine of downloaded files | 26 comments | Create New Account
Click here to return to the 'Completely disable quarantine of downloaded files' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Completely disable quarantine of downloaded files
Authored by: astack on Dec 08, '09 08:10:28AM

Thank you for this hint! I'm sure someone will claim that this is dangerous and a security risk so you shouldn't do it. However, if you turn off "automatically open safe files after downloading" then most of the risk from turning this off I would think is mitigated because the case of an executable being downloaded and run without your explicit command is not really there.

What I'd like really like to see Safari do is have an option like Firefox when it asks what you want to do with a file you want to download. But I can't stand nag-software and I notice that those funny commercials aren't really true any more about how much better OS X is than Windows because of inundation of warnings that train people to just click OK without thinking.



[ Reply to This | # ]
Disabling "open safe files" is NOT a band-aid
Authored by: PCheese on Dec 09, '09 12:49:01AM

It's important that people understand that the quarantine system and disabling the "open safe files" mechanism protect you from different things.

Turning off "automatically open safe files after downloading" does NOT eliminate the risk of turning off the quarantine system. Nothing that is caught by quarantine is considered safe, so Safari should *never* attempt to open quarantined files via that mechanism. The quarantine option is completely separate and meant to protect you from other attack vectors.

Oh, I might as well say it outright: it's true, this hint is a security risk. =)



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: Imaria on Dec 08, '09 09:16:21AM

I want to rate this hint 20 stars. That pandering behaviour was seriously irritating to me since it started, especially when it views text files as applications because it doesn't recognize their extension.



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: ragmaxone on Dec 08, '09 02:01:47PM

that would be useful for me to affect only one account... I know when I have to be careful, but my son and my wife do not really.



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: everkleer80 on Dec 09, '09 06:02:05AM

Yes, but does this really help them be careful? I think the problem with these dialogs is that most computer illiterate people will blindly hit ok whenever they pop up, and most computer literate people will 'know when they have to be careful' and just find them anoying.



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: tselliott on Dec 08, '09 06:44:02PM
Lovely hint! There seems to be some sort of problem with the command for Leopard though. I'm getting the following error:
find: -exec: no terminating ";" or "+"


[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: unfletch on Dec 08, '09 08:08:25PM
Try this: find ~/Downloads -type df -exec xattr -d com.apple.quarantine "{}" \;

[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: asmeurer on Dec 08, '09 07:58:45PM

Wow. I always assumed there would never be a defaults write fix for this because it would be a gapping hole in the security feature.



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: digitol on Dec 08, '09 10:25:29PM

THANK YOU THANK YOU THANK YOU for this!!! WOwwww. Wowwwww. This is the best hint I have read in years!! Anything that takes the Bullsh*t and redundancy away from the personal computing experience is greatly appreciated. Now my mac will start feeling like a mac again. PC users have no idea what I mean, but all you dedicated macies out there know whats up.
-Digitol-



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: emale on Dec 08, '09 11:16:10PM

Also 20 stars from me ;-)



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: clinton1550 on Dec 09, '09 12:37:18AM

I think the most annoying thing about that dialog is that when you say "yes I DO want to open this application" the app opens in the background instead of the foreground where you want it to be.

---
Elvis isn't dead, he's riding around in the desert with Jesus in a gold plated Cadillac.



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: mal0rd on Dec 09, '09 03:25:15AM

Thank you - this is why I read macosxhints.



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: cleanhead on Dec 09, '09 06:34:42AM

50 stars! Now if only someone would post a defaults command to disable the @!!#%!! spell-checker in iCal and Stickies once and for all...



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: Unsoluble on Dec 09, '09 08:55:39AM

Well, there's your Stickies fix up today. :)



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: vramin on Dec 09, '09 06:35:03AM

This is one of Leopard's features that makes me want to yell at Steve Jobs.

I downloaded it for some reason so of course I want to run it.

Thanks for the great hint.



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: qrulf on Dec 09, '09 07:53:16AM

I was really excited to read this - but does it actually work for any of you?

As a test (after rebooting) I tried to download a couple of dmg files from Apples software update (apple.com/swupdates), but I've had no luck getting any file without the 'com.apple.quarantine' nuisance :-(

Edited on Dec 09, '09 08:03:16AM by qrulf



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: cleanhead on Dec 09, '09 09:02:08AM

It popped up on me after I downloaded a freeware app from Macupdate. Damn!



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: vramin on Dec 09, '09 10:25:58AM

It worked as described for me. Did you restart?



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: cleanhead on Dec 09, '09 10:44:08AM

Yes.



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: emale on Dec 11, '09 09:29:08AM

Worked for me as described on two machines (MacOS 10.5 and MacOS 10.6 as well). Did you copy/paste the command from here to the terminal? Otherwise the might have been a mistyping...



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: ottonomy on Dec 13, '09 09:24:36PM

Another 50 stars from me. I have been awaiting this hint since about a week after Leopard was released. It's a hint I would happily have PAID for.

It pains me though, to see people complaining about the security hole this opens. Are not terminal commands all about freedom from the restraints put in place to protect novice users?



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: synchro505 on Dec 20, '09 01:11:19PM

If someone wanted to turn quarantine back on, how would they do it? (Terminal commands)



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: robg on Dec 27, '09 06:50:49AM

Repeat the command, change NO to YES.

-rob.



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: siys on Jan 08, '10 12:28:13PM

Thank you! Worked perfectly. That pesky message was driving me mad!!



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: emale on Sep 07, '12 12:09:24AM

Stumbled upon this after a new installation:
You should use the defaults-command with superuser rights like that:
sudo defaults write com.apple.LaunchServices LSQuarantine -bool NO

Using it without superuser rights was okay for most of the use. But when you download an application and move it to your login items the quarantine warning will pop up after the next reboot/login - even when you opened up the application before! That got me crazy.



[ Reply to This | # ]
Completely disable quarantine of downloaded files
Authored by: seychellian on Dec 29, '13 06:11:27AM

Does this work on Mavericks?



[ Reply to This | # ]