Quick Tip: Lock Down Your Files with Simple Finder

Quick Tip: Lock Down Your Files with Simple Finder

Tutorial Details
  • Topics: Security, File Browsing, Terminal
  • Difficulty: Advanced
  • Estimated Completion Time: 10 Minutes

If you’re a social being, sooner or later you’ll find yourself allowing someone else to sit down at your machine to watch a YouTube video or check their email. Whether the visitor is five or fifty, you probably don’t want them screwing around on your system. So what’s the quickest way to lock down your Mac if you haven’t set up guest access? Simple Finder to the rescue.


What Is Simple Finder?

Simple Finder is a hidden mode that exists on your computer that essentially disables file access altogether. Any files on your desktop will be hidden and the Finder will no longer open any windows. The dock and Launchpad will still be fully functional for app launching.

Any files on your desktop will be hidden and the Finder will no longer open any windows.

Simple Finder is a quick and dirty way to secure your computer. It’s neither foolproof nor completely safe. Any user can quickly jump up to Spotlight and access a bunch of your files and applications (including any third party file browsers you may have). Also, if the user really knows what they’re doing, they can crack open Terminal and disable Simple Finder.

With that in mind, it can still be quite useful if you’re confident that the guest user isn’t capable or interested in getting into too much trouble.

Tip: Some Terminal commands, such as this one, can have a significant impact on the way your system works. Move along if you don’t think you can work your way out of any issues that arise as a result.


Step 1: Activating Simple Finder

Typically, Simple Finder is a feature that’s associated with restricted user accounts. However, you can activate it on your current account with a Terminal command.

Terminal

To launch Simple Finder, keep this snippet handy and paste it into Terminal when you’re about to hand over your computer. The first line enables Simple Finder and the second line relaunches the Finder, which is necessary to make the changes take place.

defaults write com.apple.finder InterfaceLevel simple
killall Finder

As mentioned above, this will fundamentally disable the main Finder features. You won’t be able to do any real browsing.


Step 2: Deactivating Simple Finder

Once you’ve launched Simple Finder, there are two ways to return to the normal Finder. The first method is to go to the “Finder” menu bar item and then click on “Run Full Finder”. Performing this function requires your Admin user name and password, so technically only you should be able to turn Simple Finder off.

Terminal

That being said, even without a password, you can jump over to Terminal and type the following commands to enable the normal Finder.

defaults delete com.apple.finder InterfaceLevel
killall Finder

Step 3: Disabling Dock Changes

If you’re worried about your guest messing up your dock, you can quickly lock that down as well. The following Terminal command will make it so that the dock is still active and functional for launching, but not editable in any way (no rearranging, adding/deleting apps, etc.).

defaults write com.apple.dock contents-immutable -bool true
killall Dock

To undo this and get your normal dock powers back, simply type in the same command but change “true” to “false”.

defaults write com.apple.dock contents-immutable -bool false
killall Dock

More on Parental Controls Soon

Simple Finder is neat, but it’s an incomplete solution. If you’re interested in fully setting up the Parental Controls on your Mac, you’re in luck, we have a a complete guide coming soon. Be sure to check back soon to see it!

Josh Johnson is secondfret on Graphicriver
Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • http://cameronmalek.com Cameron Malek

    defaults delete com.apple.finder InterfaceLevel does not work for turning off Simple Finder, and Finder > Run Full Finder is only temporary until Finder (or the computer) restarts again.

    • http://cameronmalek.com Cameron Malek

      defaults delete com.apple.finder InterfaceLevel standard will successfully turn off Simple Finder.

      • http://mac.tutsplus.com Josh Johnson
        Author

        I tried this, but “standard” actually screws things up. Leaving it off works perfectly.

    • Tuan

      Hey users, this command will ruin your Mac. Be aware of this.

  • Martin Gordon

    What’s the advantage to doing it this way as opposed to just enabling a guest account and switching to that account from the menu bar when needed?

    • http://mac.tutsplus.com Josh Johnson
      Author

      Bottom line: setting up guest access is a far superior method… but this super quick hack also exists and it’s helpful to know it’s there.

  • http://www.vlado1.com Vladimir Varbanov

    this is really cool feature for quick and secure lock the things down!
    Goes to my favorites

  • Tuan

    Hello author,

    How I can remove Simple Finder function? It still appears in Finder Menu.

    Thank you.

    • Tuan

      I followed this article instruction and it RUINS my Mac. Now I can’t restart or shutdown my Mac, menu items is disappeared. The spotlight icon is disappeared too. Terrible!

      • http://mac.tutsplus.com Josh Johnson
        Author

        It’s a pretty standard action that’s easy to undo. Especially with the option to return to full Finder from the menu bar. Terminal is always a little risky though, what system are you running?

    • http://mac.tutsplus.com Josh Johnson
      Author

      Type these two lines:
      defaults delete com.apple.finder InterfaceLevel
      killall Finder

      • Tuan

        Thank you for your help. I’m using 10.7.4. I’ve tried 2 ways you’ve mentioned but the system is still messed up. Now my account is in restricted state. No System Preferences, no Shutdown – Restart button, no Spotlight…I have to shutdown it by pressing Power button. When it turned on again, the problem is still there.

        I’m using TotalFinder before, it’s been removed when I tried to fix the system. Is it the cause?

      • Tuan

        I’ve typed:

        defaults delete com.apple.finder InterfaceLevel standard
        killall Finder

        Then my Mac started to mess up. I’ve just tried your instruction, typing these two lines:

        defaults delete com.apple.finder InterfaceLevel
        killall Finder

        and Terminal says:

        2012-07-20 07:16:37.589 defaults[743:707]
        There is no (InterfaceLevel) default for the (com.apple.finder) domain.
        Defaults have not been changed.
        2012-07-20 07:16:37.591 defaults[743:707]
        There is no (InterfaceLevel) default for the (com.apple.finder) domain.
        Defaults have not been changed.

        Please help me…

        • http://mac.tutsplus.com Josh Johnson
          Author

          Sorry to hear you’re having so much trouble. I’ve tried this again and again and it always works, I’ve double and triple checked other resources, all point to the same simple commands.

          1. Are you sure you’re logged into your admin account?
          2. Did you try turning on the full Finder from the menu bar?

          Just to make sure you’re on the right track, run the “simple” version of the command to enable the Simple Finder mode. Then run the version above that turns it off, then restart your machine to make sure it took effect.

          • Tuan

            Thank you for your help. I’ve solved it. Don’t know why but I repeat these lines:

            defaults write com.apple.finder InterfaceLevel simple
            killall Finder

            and then:

            defaults write com.apple.finder InterfaceLevel simple
            killall Finder

            so when I restart my Mac by Power button, it returns back to normal.

            I guess this *standard* line causes the problem:
            defaults delete com.apple.finder InterfaceLevel standard

  • EG

    Guys, ever since I tried this my Mac is ruined. I lost spotlight. When I reboot my computer, it will start on the simple finder by default. I don’t even get the option to Shut Down or Restart from the menu. This ruined my computer. Please help me get rid of this ordeal, I followed your steps thinking you knew what you were talking about.

    • http://mac.tutsplus.com Josh Johnson
      Author

      Sorry you’re having so much trouble! There’s a warning above not to give this command a shot unless you know how to work your way out of a bind if something goes wrong. See the similar problem that a user had above and follow the same steps. Let me know how it works out for you.

      • EG

        It didn’t work and running disk utility didn’t repair it either. The spotlight file is not even in my library folder. I know exactly how to work my way out of a bind, but this is not the case.

  • John

    This post also ruined my mac. I dont know how to get it back. Great.

    • http://mac.tutsplus.com Josh Johnson
      Author

      See the troubleshooting above (as well as the stern warning). Have you gone through these steps?