Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chris001

macrumors regular
Original poster
Jan 31, 2008
130
0
Vancouver
hey guys.
here is what i want to do.

i have some files that my kids shouldn't be looking at =0
i've hidden them but you know kids, they snoop, and it isn't hard for kids these days to find things.

so, i would like to know how to password protect a folder.
ie.
a folder in Documents titled "Folder A"
is there a way, that if i click on Folder A it will ask me for a password before i can open that folder?

i know you can do something like this using the built in features of 10.5 without downloading apps.

thanks.
 
The way to do this is to make an encrypted disk image, then drop the folder into that image. In order to mount it you'll need to enter a password.

You can make such an image using Disk Utility.
 
You can't password protect a folder, exactly.

What you CAN do is create an encrypted, password-protected sparse disk image.

Go to /Applications/Utilities and open Disk Utility. From there, go to the File Menu and choose New > Blank Disk Image...

You'll want to set the size to as large as you think it will need to be to hold all the files you want to put in it (and any you might want to put in later). Set the encryption to AES-128 (or AES-256 if you're super paranoid, which will slow down access somewhat), and make sure the format is set as "sparse disc image" (which means it will expand in size consumed as you put in files, instead of taking up the maximum size you set above from the get-go).

When you continue, Disk Utility will prompt you for the password you want to set for the disc image. What's most important to do here is to UNCHECK the checkbox that says "Remember password (add to Keychain)." Making sure that's unchecked means that every time you want to mount the image it will prompt you for the password. If it isn't entered successfully, the image will not mount, and will continue to be unreadable by anyone else (since it's encrypted).

Then you can just drag files to it like it was a mounted volume. When you're done, eject it and all your files in it are secure.
 
thank you very much.
this seems to have solved my problem.

NOW, i messed up.
i allocated too little space to the disk file.

and i can't seem to delete it. as i want to make another disk that is bigger.

how can i do this.
i got into disk utility and select erase, but the disk image is still there.

how do i get rid of it completely?
 
You need to select the .dmg in Finder rather than inside Disk Utility and delete it like you would any normal file/folder, just need to unmount it first.
 
A disk image is a file, you saved it somewhere. When you double click it, it appears like it's a mounted volume, but the data itself is in that .dmg (or in this case .sparseimage) file. You need to unmount the volume, and then go into the Finder and delete the file you created, wherever that is (drag it to the trash, empty the trash).
 
hey guys.
here is what i want to do.

i have some files that my kids shouldn't be looking at =0.

You don't need to password protect the folder. All you need to do is disable read permission. If you right click on "get info" go to the bottom of the info folder and you can change read/write permision on the folder. Click the little gear and yo have to option to apply this to all contents of the folder and sub folders.

Now the you will be able to see the folder and other users wil not be able to see it. It is actually password protected because the kid would have to know the password on your user login to access your account
 
i actually only have 1 account. i'm the primary user so my kids use them once in awhile. i bring it on trips, etc. or they use it when they need it. ( i don't even have a password on my account)

i don't like having more then 1 account because at startup you must login before the desktop appears. and i don't liek that.. stupid i know. but i hate waiting as i turn on my macbook and walk away to get a drink or something.
 
Creating an password-protected disk image on an external hard drive.

The below information is perfect but I tried it on an external hard drive and it doesn't seem to work.
Is it possible to create a disc image on an external hard drive and if not, how can I have a folder on an X-HD that is not accessible to anyone but me?

Thanks


You can't password protect a folder, exactly.

What you CAN do is create an encrypted, password-protected sparse disk image.

Go to /Applications/Utilities and open Disk Utility. From there, go to the File Menu and choose New > Blank Disk Image...

You'll want to set the size to as large as you think it will need to be to hold all the files you want to put in it (and any you might want to put in later). Set the encryption to AES-128 (or AES-256 if you're super paranoid, which will slow down access somewhat), and make sure the format is set as "sparse disc image" (which means it will expand in size consumed as you put in files, instead of taking up the maximum size you set above from the get-go).

When you continue, Disk Utility will prompt you for the password you want to set for the disc image. What's most important to do here is to UNCHECK the checkbox that says "Remember password (add to Keychain)." Making sure that's unchecked means that every time you want to mount the image it will prompt you for the password. If it isn't entered successfully, the image will not mount, and will continue to be unreadable by anyone else (since it's encrypted).

Then you can just drag files to it like it was a mounted volume. When you're done, eject it and all your files in it are secure.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.