Skip navigation
This discussion is archived

How to password protect folders

1586 Views 13 Replies Latest reply: Apr 28, 2007 11:21 AM by imike007 RSS
imike007 Calculating status...
Currently Being Moderated
Apr 25, 2007 11:41 PM
I have looked on the forums and I have found that it is somehow possible, but there are no explanations on how to do it, it just shows how to hide the folders. I don't want to hide anything, I would just like to password protect the folder. How can I do this?
MacBook, Mac OS X (10.4.9)
  • Bokat57 Level 2 Level 2 (165 points)
    Currently Being Moderated
    Apr 26, 2007 12:46 AM (in response to imike007)
    HI
    To password protect your folder Do as follows:

    Open Disk Utility ( Applications-Utilities-Disk Utility ) Click on "file" in the menu bar - Put the cursor on "new"- Click on "Disk image From folder"

    In the dialog box that pops up navigate to the folder you would like to PassWord protect Select that folder And then at the bottom right hand corner of the dialog box click on the "Image" button

    Next The "new image from folder" box will appear name the folder You want to password protect and where you would like to save it

    Then choose the image format (I choose read and write) Next click on encryption and choose AES-128 and then click "save"

    Then in the resulting box type in the password to protect this folder and choose if you want your keychain to remember this folder's password

    Please Do not forget the password to this folder as if you do the contents of this folder will be gone forever

    Hope This Helps

    iMac G5   Mac OS X (10.4.9)  
  • baltwo Level 9 Level 9 (59,180 points)
    Currently Being Moderated
    Apr 26, 2007 12:56 AM (in response to imike007)
    Not enough information about why you're trying to do this. Are there multiple admin users? The solution given by Bokat57 isn't what you wanted. All that does is create encrypted disk images, but then you'd have to delete the originals. Each individual user's data is already protected. Provide more details and it's possible you can get a solution that meets your needs.
    G4 450 MP Gigabit, Mac OS X (10.4.9)
  • Bokat57 Level 2 Level 2 (165 points)
    Currently Being Moderated
    Apr 26, 2007 1:24 AM (in response to baltwo)
    Hi
    If imike007 wants to keep his folder's private for what ever reason ( without 3rd party software ) This is the way to do it I tried to answer a general question with a general answer



    iMac G5   Mac OS X (10.4.9)  
  • John Dorsey Level 2 Level 2 (410 points)
    Currently Being Moderated
    Apr 26, 2007 7:21 AM (in response to Bokat57)
    Bokat57's suggestion is an excellent one, suitable for almost any purpose. The subject folder is well-protected, and when the encrypted disk image is opened, the folder and its contents can be manipulated and changed just as in their original, unencrypted state. (The only thing to watch out for is that you can't expand the folder and its contents beyond the size of the disk image you create.) Finally, when you're done with the folder, just eject the disk image and everything is all encrypted again.

    Spotlight will not, by default, index the contents of the expanded folder. It can, however, be enabled via terminal. With the disk image open, enter this command in terminal:

    sudo mdutil -i on /Volumes/[volumename]

    - where [volumename] is the name of the expanded, mounted disk image. There is little downside to enabling indexing in this fashion, because the index for that volume is stored on the disk image, and when it's ejected (i.e., re-encrypted), it becomes invisible to Spotlight. That means that Spotlight only works to search it while it's mounted. When it's not mounted, the contents are private again.
    Dual 2.5Ghz G5, Mac OS X (10.3.9), 3.5GB RAM
  • John Dorsey Level 2 Level 2 (410 points)
    Currently Being Moderated
    Apr 26, 2007 11:42 AM (in response to imike007)
    Well, this .dmg process will conceal that material pretty nicely. Indeed, instead of what you likely have now, namely, a visible folder containing several files with intriguing names ("MyBankPasswords.doc"), when you unmount your new disk image containing this folder, the only thing that will appear on your desktop is a single .dmg file with whatever benign or misleading name you choose to give it. The contents are undetectable, unbrowseable, and secure. (Um, if you don't include the password in your keychain!)

    Like one of the prior posters said - do not, do not, forget your password to the .dmg, because the info is gone for good if you do!
    Dual 2.5Ghz G5, Mac OS X (10.3.9), 3.5GB RAM
  • Bokat57 Level 2 Level 2 (165 points)
    Currently Being Moderated
    Apr 26, 2007 11:09 PM (in response to John Dorsey)
    Thanks John

    Actually with the Disk Utility app. you can make an expanded encrypted folder (Disk Image) As follows:

    Launch Disk Utility click on "file" -- Put the cursor on "new"-- click on "Blank Disk Image" and then in the resulting "New Blank Image" dialog box you will see under the "Save As" and "Where" section is "Size" "Encryption" &
    "Format"
    These selections (after you give the folder a name) will create a folder (Disk Image) that you can put data in and take data out up to the size you have chosen

    Have A Good Day

    iMac G5   Mac OS X (10.4.9)  
  • baltwo Level 9 Level 9 (59,180 points)
    Currently Being Moderated
    Apr 26, 2007 11:34 PM (in response to Bokat57)
    Appears you have a solution for your problem. Now, mark the topic and replies, appropriately. My only caution would be that you backup the data contained in those encrypted images, unencrypted, and keep it off-site. Encrypted dmg files have been known to go south (do a search for FileVault or File Vault in these forums and read the horror stories) and people do forget the passwords they gave them. In both cases, the data's unrecoverable. Good computing.
    G4 450 MP Gigabit, Mac OS X (10.4.9)
  • parrx Calculating status...
    Currently Being Moderated
    Apr 27, 2007 12:00 AM (in response to imike007)
    I do it the old unix style. Create a root password, then open the terminal and su to root. If you want to protect a folder, just type chmod -R 700 folder_name. Then only root can open the folder. When you want to open the folder, (su before) type chmod -R 777 folder_name and you can edit the folder.

    parrko

    MacIntel Mini 1.83   Mac OS X (10.4.9)  
  • baltwo Level 9 Level 9 (59,180 points)
    Currently Being Moderated
    Apr 27, 2007 1:23 PM (in response to baltwo)
    Follow-up: see http://lorenzo.yellowspace.net/corrupt-sparseimage.html for steps on recovering corrupted encrypted disk images. Not for the faint of heart.
    G4 450 MP Gigabit, Mac OS X (10.4.9)
  • baltwo Level 9 Level 9 (59,180 points)
    Currently Being Moderated
    Apr 27, 2007 1:27 PM (in response to parrx)
    Be very careful about using the root user account. See http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh1549.html for cautions. I never advocate its use and have never enabled it the past five years running OS X—it's dangerous if you don't know what you're doing.
    G4 450 MP Gigabit, Mac OS X (10.4.9)
  • Bokat57 Level 2 Level 2 (165 points)
    Currently Being Moderated
    Apr 28, 2007 10:11 AM (in response to imike007)
    Hi imike007

    Thanks for the stars I am glad my posts were helpfull

    Have fun with your Mac

    iMac G5   Mac OS X (10.4.9)  

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.