sodcalculator

10 Tech How-To

Password Protect Folders on Mac OS X El Capitan

Guide 10-43479 · Updated · Step by step

If you’re running Mac OS X El Capitan (10.11), you can lock away sensitive files in an encrypted, password-protected disk image without installing any third-party software. This guide shows you how to create a secure folder using the built-in Disk Utility, mount it when needed, and keep your data private.

What You’ll Need

  • A Mac running OS X El Capitan (10.11)
  • An administrator account (you’ll need to enter your password to create the image)
  • Enough free disk space for the size of the protected folder you plan to create

Step-by-Step

  1. Open Disk Utility. Go to Finder > Applications > Utilities > Disk Utility. Alternatively, press Command + Space and type “Disk Utility” to launch it via Spotlight.
  2. Start the New Image wizard. In the menu bar, click File > New Image > Blank Image….
  3. Name the image. In the “Save As” field, type a name for the image file (e.g., “Private”). In the “Name” field, enter the name that will appear when the image is mounted on your desktop (e.g., “Private Files”).
  4. Set the size. In the “Size” dropdown, choose a size that fits what you want to store. You can select a preset (e.g., 100 MB, 1 GB) or choose “Custom” to type an exact amount. Remember, the image will occupy this much space on your hard drive immediately.
  5. Choose the format. From the “Format” dropdown, select Mac OS Extended (Journaled). This is the standard format for a Mac volume and works perfectly for storing files.
  6. Set encryption. Click the “Encryption” dropdown and select 256-bit AES encryption. This is the strongest option available and is what gives your folder its password protection.
  7. Choose partitions and image format. For “Partitions,” select Single partition – Apple Partition Map (or “Single Partition – GUID” if you prefer; both work). For “Image Format,” choose Read/Write so you can add and remove files later.
  8. Create the image. Click Save. A dialog will appear asking you to choose a password. Enter a strong password, verify it, and check the box “Remember password in my keychain” only if you want the Mac to auto-fill it later. Then click OK.
  9. Wait for creation. Disk Utility will create the image. This can take a minute or two depending on the size. Once done, the image will automatically mount on your desktop.
  10. Add files. Drag and drop files or folders you want to protect into the mounted image window. They will be copied inside.
  11. Eject the image. When you’re done, right-click the mounted volume on the desktop and select Eject. The image file (with a .dmg extension) is now your password-protected folder. Anyone who tries to open it will be prompted for the password.

Common Mistakes

  • Choosing “No Encryption” – If you don’t select 256-bit AES, the image won’t be password protected.
  • Setting a size too small. If you later try to add more files than the image size allows, you’ll get an “image full” error. You can’t easily resize a read/write image, so pick a comfortable size from the start.
  • Using the wrong image format. Selecting “Read-only” will prevent you from adding files later. Always choose “Read/Write” unless you’re creating an archive.
  • Deleting the original files. After dragging files into the image, the originals stay on your Mac. If you want them only in the protected folder, delete the originals after confirming the copies are inside.
  • Losing the password. There is no way to recover the password for an encrypted disk image. If you forget it, the data is effectively gone.

Tips

  • Use a strong password that includes uppercase, lowercase, numbers, and symbols. Avoid using the same password as your user account.
  • If you don’t want to type your password every time, check “Remember password in my keychain” during creation. This is convenient but means anyone with access to your keychain can open the image.
  • Keep the .dmg file in a safe location, such as a folder you back up. If you back up to iCloud or Time Machine, the encrypted image remains protected.
  • To create a new protected folder later, simply duplicate the .dmg file, rename it, and change its password by mounting it, going to File > Change Password in Disk Utility.
  • You can also create an encrypted image from an existing folder by choosing File > New Image > Image from Folder in Disk Utility.

Troubleshooting

  • Disk Utility won’t create the image. Make sure you have enough free disk space for the size you chose. Also, try quitting and reopening Disk Utility, or restart your Mac.
  • You forgot the password. Unfortunately, there is no recovery option for encrypted disk images. If you have the password saved in your keychain, you can retrieve it via Keychain Access (in Utilities). Search for the image’s name and look for “Show password.”
  • The image mounts but shows as full. You can’t expand a read/write image easily. Instead, create a new, larger image and copy the contents from the old one.
  • You get an error when dragging files. Ensure the image is mounted (its icon is on the desktop) and that you have write permission. If the image is “Read-only,” you’ll need to recreate it with “Read/Write” format.
  • The password prompt doesn’t appear. If the image opens without asking for a password, it may have been created without encryption. Check the image’s settings in Disk Utility (select the image file, then File > Get Info). If it says “No Encryption,” you’ll need to create a new encrypted image and copy the contents over.

Frequently Asked Questions

Can I password protect an existing folder without moving files?

Yes. In Disk Utility, choose File > New Image > Image from Folder, select the folder, and set encryption. The image will contain a copy of the folder. You can then delete the original if you wish.

What happens if I forget the password?

There is no way to open an encrypted disk image without the password. The data is permanently locked. This is why it’s crucial to use a password you can remember or store it in a password manager.

Can I use this method on newer macOS versions?

Yes, the steps are nearly identical in newer versions of macOS, though Disk Utility’s interface may look slightly different. The encryption method (256-bit AES) remains the same.

Does the image compress files to save space?

No. The image is a fixed size you set. If you choose “Compressed” in the Image Format dropdown, the file will be smaller on disk, but you cannot add files to a compressed image. For a working protected folder, use “Read/Write.”

Can I put the protected image on an external drive or cloud?

Yes. The .dmg file can be copied anywhere. As long as you have the password, you can mount it on any Mac. On cloud storage, the file remains encrypted, so it’s safe to upload.

Is 256-bit AES encryption secure?

Yes, it is the same encryption standard used by many governments and financial institutions. For personal use, it is considered extremely secure.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →