An open community 
of Macintosh users,
for Macintosh users.

FineTunedMac Dashboard widget now available! Download Here

Previous Thread
Next Thread
Print Thread
Lock/protect folder?
#4442 09/28/09 02:45 PM
Joined: Aug 2009
OP Offline

Joined: Aug 2009
This is probably a stupid question, but is it possible to lock only one folder so that no-one else can look at the contents? I'm not even sure if I mean "lock" - I might mean "password protect".

I don't think anyone else will use my Mac when I go away in a couple of weeks, but there is one folder which I'd prefer to keep private. It's only two levels down. Maybe I should just hide it further down, somewhere. confused

I had a quick look at Mac Help but as usual the scenarios presented don't quit fit my circumstances.

FWIW, this Mac has never been logged out since the day I bought and configured it over a year ago. It's been so long that now I'm nervous to do that. I only mention this in case someone says that's the answer.

Many thanks

Re: Lock/protect folder?
Bensheim #4444 09/28/09 03:40 PM
Joined: Aug 2009
Likes: 16
Moderator
Online
Moderator

Joined: Aug 2009
Likes: 16
This question has been asked and answered many times at MacFixit, but to my knowledge this is the first time it has been raised here at FTM. The easiest way is to create an encrypted disk image (.dmg) using Disk Utility and move the folder there. Be sure to use a password you can remember because there is no back door. After that you can always access the files by mounting the disk image using the password.

Last edited by joemikeb; 09/28/09 03:42 PM.

If we knew what it was we were doing, it wouldn't be called research, would it?

— Albert Einstein
Re: Lock/protect folder?
joemikeb #4445 09/28/09 03:57 PM
Joined: Aug 2009
OP Offline

Joined: Aug 2009
Thank you Joe, I will look into that when I have a moment before I go away.

Your solution would never have occurred to me. I thought I was going to go down a trail about key-chains and permissions combined with logging out of my Admin account.

Thank you! (bearing in mind that I might be enthusiastically thanking you before I try it wink )

Re: Lock/protect folder?
joemikeb #4448 09/28/09 05:29 PM
Joined: Aug 2009
Offline

Joined: Aug 2009
was just thinking, filevault stores two copies of the key in the dictionary on the disk image, one encoded with your password and one with the master password certificate... I wonder if there's a way to do that with a regular encrypted disk image? (probably no)


I work for the Department of Redundancy Department
Re: Lock/protect folder?
Bensheim #4454 09/28/09 10:44 PM
Joined: Aug 2009
Offline

Joined: Aug 2009
To add to joemikeb's answer (which is probably the best and simplest way to achieve what you want), you will be asked if you want to save the password, i.e. into your keychain. Obviously you must decline so that anyone trying to open the image has to type the password.


Andreas
Re: Lock/protect folder?
Bensheim #4456 09/29/09 12:21 AM
Joined: Aug 2009
Moderator
Offline
Moderator

Joined: Aug 2009
Bensheim,

While this Macworld article is from 2006, the information might be a useful reference for using Disk Utility to create a disk image: Encrypt files for safety.


Back up everything you can't afford to lose: documents, mail, movies, music, photos, and other data and settings.
Re: Lock/protect folder?
Andreas #4462 09/29/09 05:56 AM
Joined: Aug 2009
Likes: 15
Online

Joined: Aug 2009
Likes: 15
Originally Posted By: Andreas
Obviously you must decline so that anyone trying to open the image has to type the password.

That applies if Bensheim's keychain password is the same as hir login password; if it is different, keychain storage will be safe (and maybe save hir from having to remember a new password).

On second thought, while glib, that was incorrect, because Bensheim never logs out of hir account.

Go with Andreas, Bensheim (but other users can consider the alternative)!

Last edited by artie505; 09/29/09 07:00 AM. Reason: On second thought...

The new Great Equalizer is the SEND button.

In Memory of Harv: Those who can make you believe absurdities can make you commit atrocities. ~Voltaire
Re: Lock/protect folder?
dianne #4463 09/29/09 06:07 AM
Joined: Aug 2009
Likes: 15
Online

Joined: Aug 2009
Likes: 15
This Apple doc, "How to create a password-protected (encrypted) disk image in Mac OS X 10.3 or later," "Last Modified: June 09, 2009," is more current and directly "from the horse's mouth."


The new Great Equalizer is the SEND button.

In Memory of Harv: Those who can make you believe absurdities can make you commit atrocities. ~Voltaire
Re: Lock/protect folder?
Andreas #4464 09/29/09 06:27 AM
Joined: Aug 2009
Offline

Joined: Aug 2009
Originally Posted By: Andreas
To add to joemikeb's answer (which is probably the best and simplest way to achieve what you want), you will be asked if you want to save the password, i.e. into your keychain. Obviously you must decline so that anyone trying to open the image has to type the password.


Or better yet, create a second keychain, and put the password in that. Set up the second keychain to auto-lock after a brief period of inactivity.

Use this second keychain to hold all your more sensitive passwords: bank accounts, encrypted disk images, etc. All of those passwords can be different, but you only have to remember the one password that unlocks that keychain.

The system is smart enough to recognize that a password it needs is in a locked keychain, and will ask you for the password to the keychain. Because you've set this keychain to auto-lock, someone sitting down at your computer can't use it to gain access, even if you didn't log out, or even if they know your login password.

Re: Lock/protect folder?
Andreas #4483 09/29/09 04:31 PM
Joined: Aug 2009
Offline

Joined: Aug 2009
Horses for courses. When deciding how to answer a question it's not bad policy to read what - and how - the questioner has written. The answers to

“Ive been told to find something with a Terminall. How do I do that please?”

and

“I have no 'find' in /usr/bin/. Suggestions appreciated. BSD re-install?”

should, I suggest, be geared to the apparent 'saviness' of each OP. "find should be in /usr/bin/" could be frightening to one, insulting to the other. Same horse, different event.

For someone who wasn't aware of the existence of encrypted images, I suspect that some of this thread might be making him regret having asked the question, or having asked it here! ( smile )  While talk of logins and different keychains may be erudite, they may not be apposite -- apposite, directed at the OP and intended to be helpful to him.

Horses for courses.


Andreas
Re: Lock/protect folder?
Andreas #4488 09/29/09 06:40 PM
Joined: Sep 2009
Offline

Joined: Sep 2009
Originally Posted By: Andreas
While talk of logins and different keychains may be erudite, they may not be apposite -- apposite, directed at the OP and intended to be helpful to him.

At least it's helpful to make one aware of alternatives.

Your advice -- i.e., "Obviously you must decline" -- was not necessarily the best (or most accurate) approach either.


Originally Posted By: Andreas
The answers to [example questions] should I suggest, be geared to the apparent 'saviness' of each OP. [example answer] could be frightening to one, insulting to the other.

Reacting with fright or disparagement to factual (and useful) technical information is also something we can help the reader work through.


Originally Posted By: Andreas
I suspect that some of this thread might be making him regret having asked the question, or having asked it here! ( smile )

And you helped! smirk


Moderated by  alternaut, dianne, dkmarsh 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.4.33 Page Time: 0.027s Queries: 36 (0.022s) Memory: 0.6246 MB (Peak: 0.7210 MB) Data Comp: Zlib Server Time: 2024-04-25 15:07:01 UTC
Valid HTML 5 and Valid CSS