TekRevue

  • Home
  • Mac
  • Windows
  • Mobile
  • Games
  • Home Theater
  • Reviews
  • Editorials
  • Tips
    • Windows
    • Mac
    • Mobile
  • Twitter
  • Facebook
  • Google+
  • Feed

Mac

How to Disable ‘Are You Sure You Want to Open This File?’ Warnings in OS X

By Jim Tanous on August 26, 2015 at 9:36 AM • @mggjim

One of the generally positive aspects of OS X is that the operating system attempts to protect the user from actions or events that can harm the system or endanger a user’s data, such as preventing the modification of core system files and proactively disabling insecure browser plugins. But we use the “generally” qualifier deliberately, because sometimes OS X can go a bit too far, especially when it comes to more advanced users who understand the risks and are comfortable operating with a higher level of control.

Turn your DVDs into digital files with a level-3 hardware accelerated DVD ripper.

A great example of an OS X security feature that can be more annoying than helpful is the Harmful Software Warning, also known as the “are you sure you want to open this file?” message, which pops up virtually every time a user attempts to open a downloaded file that didn’t originate in Mac App Store or from a trusted and signed developer.

are you sure you want to open this file mac os x

When this warning message is triggered, instead of simply opening the file or application, the user is forced to stop, make sure that the file being opened is the intended one, and then manually click “Open” in order to proceed. This is probably a good thing for less experienced users, who don’t fully understand that malware and viruses often masquerade as common file types. But for power users who are constantly downloading and opening apps and files, the Harmful Software Warning serves primarily as an annoying and frustrating workflow interruption.

Yes I’m Sure, Dagnabbit!

Thankfully, you can disable the “are you sure you want to open this file?” warning message with a quick trip to the Terminal. Launch Terminal from the Applications > Utilities folder (or search for it with Spotlight), copy and paste the following command into the Terminal window, and then press Return to execute it.

defaults write com.apple.LaunchServices LSQuarantine -bool NO

You’ll need to restart your Mac in order for the change to take effect, so save all open files and reboot. When you log back in to OS X, try to open a downloaded file that previously would have produced the warning message (a handy app like Handbrake is a good way to test if you don’t have any other downloaded files ready and waiting).

When you launch the app or open your test file, you’ll notice that the action executes without the Harmful Software Warning. This does indeed potentially put you at greater risk, but if you’re careful about where you obtain your files online, and if you’re careful about which files you choose to open, then disabling this feature can eliminate a big annoyance and ensure that OS X won’t ever ask you if you’re “sure you want to open this file” again.

Note that this is a user-level command, so you’ll need to perform this process for each user account on your Mac in which you want to disable the Harmful Software Warning.

There’s No Keeper at This Gate

It’s important to point out that, despite similar functionality, language, and intent, the Harmful Software Warning is technically separate from OS X’s Gatekeeper security settings, although the two can indeed cross paths in certain circumstances.

Gatekeeper, introduced in OS X Mountain Lion (and subsequently added to OS X Lion via the 10.7.5 update), is a security feature that lets users define which apps can run on their Mac based on the app’s source. For example, users can limit a Mac to only run apps that were obtained from the Mac App Store (the most secure setting), run apps from both the Mac App Store and from developers who are registered with Apple (the recommended setting), or run any app regardless of source (the “traditional” setting for how OS X operated prior to Gatekeeper’s introduction, but also the least secure).

gatekeeper mac os x system preferences

When one of the first two settings is enabled and the user attempts to run an app that doesn’t meet that setting’s security level — i.e., trying to run an app like OnyX when the security setting is configured to only support apps from the Mac App Store — Gatekeeper presents a message that looks quite similar to the Harmful Software Warning, informing users that they may be attempting to open a potentially dangerous piece of software.

mac os x gatekeeper unidentified developer

But there’s a bit of a quirk with the way these features work together. If you run the command above to disable the Harmful Software Warning, that will also disable warnings from Gatekeeper. However, that doesn’t work in the opposite direction. That is, if you completely disable Gatekeeper, you’ll still get the “are you sure you want to open this file?” warning message each time you try to open an unrecognized downloaded file.

Therefore, it’s important to remember how these two OS X security features work, and the differences between, especially when you’re helping someone else configure their Mac.

Okay, Maybe I’m Not So Sure After All

If you find that you miss the additional security offered by the Harmful Software Warning, or if you plan to let others access your user account and want enhanced protections, you can re-enable it with the following Terminal command:

defaults write com.apple.LaunchServices LSQuarantine -bool YES

Just as when you disabled the Harmful Software Warning, you’ll need to restart your Mac for the change to take effect. Also recall that, as a user-level change, you’ll need to enter this command in each user account in which the warning is disabled.

Want news and tips from TekRevue delivered directly to your inbox? Sign up for the TekRevue Weekly Digest using the box below. Get tips, reviews, news, and giveaways reserved exclusively for subscribers.

Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Google+ (Opens in new window)
  • Categories: Mac
  • Tags: #Gatekeeper #How To #OS X #Security #Terminal #Tips

Sign Up for the TekRevue Weekly Digest

Read more in Mac on TekRevue

  • Samsung 64bit Smartphone
    64-bit Mode: How to Prevent 32-bit Apps From Running on Your Mac

    Filed Under: Mac

  • app is not optimized for your mac
    32-bit Apps: What to Do If an App ‘is Not Optimized for Your Mac’

    Filed Under: Mac

  • mac offsite backup
    How and Why to Set Up an Offsite Backup for Your Mac

    Filed Under: Mac

Search

Related Articles

  • Lock Screen Message Mac
    How to Set a Custom Lock Screen Message in Mac OS X
  • How to Enable FileVault
    How and Why to Enable FileVault Encryption on Your Mac
  • OS X Gatekeeper
    How to Turn Off & Manage Mac OS X’s Gatekeeper

Connect with TekRevue

  • TekRevue on Twitter
  • TekRevue on Facebook
  • TekRevue on Google+
  • Cheats
  • Deals
  • Distractions
  • Editorials
  • Gadgets
  • Games
  • Giveaway
  • Hardware
  • Home Theater
  • More in Mac
  • Mobile
  • News
  • Podcast
  • Reviews
  • Sponsor
  • Tips
  • Windows
  • Samsung 64bit Smartphone
    64-bit Mode: How to Prevent 32-bit Apps From Running on Your Mac
  • app is not optimized for your mac
    32-bit Apps: What to Do If an App ‘is Not Optimized for Your Mac’
  • mac offsite backup
    How and Why to Set Up an Offsite Backup for Your Mac
  • safari bookmarks
    How to Configure Safari to Load Multiple Websites on Startup
  • mac ds_store network files
    Stop Your Mac From Creating .DS_Store Files on Shared Network Drives
  • safari suggestions mac
    How to Turn Off Safari Suggestions in macOS
  • macbook dictionary
    How to Get a List of Spelling Suggestions on the Mac
  • mac app store high sierra banner
    How to Hide the High Sierra Upgrade Banner in the Mac App Store
  • macbook keyboard typing
    Handy Mac Keyboard Shortcuts for Opening and Saving Files
  • combine pdf mac
    How to Combine PDFs with Preview on Your Mac
  • password
    How to Generate App-Specific Passwords for Your Apple ID
  • calendar event attachment
    Use Event Attachments in Apple Calendar to Prepare for the Big Meeting
  • mac images
    How to Copy and Save Images from Safari on the Mac
  • external hard drives
    macOS: How to Browse Other Backup Disks With Time Machine
  • homepod windows airplay
    How to Stream Audio From Windows to HomePod
  • word split view mac
    Write and Edit Like a Pro with Split View in Microsoft Word for Mac
  • system preferences mac dock
    Launch Different System Preferences Directly from the macOS Dock
  • mac password
    How to Reset a Mac Password Using Another Account
  • missing dock icon
    Fixing the Problem of Missing Dock Icons on Your Mac
  • mac photos white balance
    How to Adjust White Balance in Photos on the Mac

Tips

  • Apps
  • Gaming
  • Mac
  • Mobile
  • Online
  • Windows
  • photoshop load as layers
    How to Open Multiple Images as Layers in a Single Photoshop Document
  • iphone youtube dark theme
    How to Use the New Dark Theme in YouTube for iOS
  • typing keyboard
    How to Paste Text Only By Default in Microsoft Word
  • hide mac app store purchases
    How to View and Manage Your iTunes and App Store Subscriptions
  • How to Manually Dim the Xbox One Screen
  • xbox one store games
    How to Browse Games by Genre in the Xbox One Store
  • classic solitaire windows xp
    How to Play Classic Windows XP Solitaire in Windows 10
  • ipad controller game
    How to Set Up and Game With an iOS Controller on Your iPhone or iPad
  • Samsung 64bit Smartphone
    64-bit Mode: How to Prevent 32-bit Apps From Running on Your Mac
  • app is not optimized for your mac
    32-bit Apps: What to Do If an App ‘is Not Optimized for Your Mac’
  • mac offsite backup
    How and Why to Set Up an Offsite Backup for Your Mac
  • safari bookmarks
    How to Configure Safari to Load Multiple Websites on Startup
  • tablet bright light
    How to Disable Auto-Brightness on the iPhone and iPad
  • iphone low quality image mode
    Enable Low Quality Image Mode to Save Data When Sending Pictures on the iPhone
  • block website iphone
    Parental Controls: How to Block Websites on the iPhone and iPad
  • iphone one handed keyboard
    How to Use the iPhone’s One-Handed Keyboard in iOS 11
  • google docs macbook
    How to Clear Formatting in Google Docs
  • block notification firefox
    How to Block Website Notifications in Firefox
  • Gmail Tabbed Inbox Update
    Email Tip: How to Block Senders in Gmail
  • center embedded tweet
    Twitter Tip: How to Center Embedded Tweets
  • currency converter windows
    Quick Tip: Use the Calculator App as a Currency Converter in Windows 10
  • these files might be harmful to your computer
    How to Disable the ‘These Files Might Be Harmful to Your Computer’ Warning
  • office 365
    How to Deactivate Office 365 on an Old Computer
  • computer sounds loud
    How to Turn Off Notification Sounds in Windows 10
Company
  • About TekRevue
  • Get in Touch
  • Sponsorships

Sign Up for the TekRevue Weekly Digest

© TekRevue LLC. All Rights Reserved.

  • TekRevue User Agreement
  • TekRevue Privacy Policy

Built by Blazer Six