Private Folder Protection
Welcome to the site. Our most popular posts are a series of video tutorials on How To Use Your Mac As A Server. We also answer your Mac questions. Just Ask FMB Feel free subscribe to our RSS feed. Thanks for visiting!
Editor’s note: The following is a post from Dave Taylor, a blog partner of ours who answers reader questions.
My sister and I share a Mac computer and I’m tired of her looking at my files. Is there some way I can protect or hide my folders without downloading any software she’d notice?
Dave’s Answer:
Seems to me that the very best possible solution is for you and your sister to set up different accounts on your Mac, actually. That’s one of the real benefits of Mac OS X (and, for that matter, Windows too).
You can do that by simply going to Apple –> System Preferences… –> Accounts and setting up an account for her. Then simply ensure that you log out when you’re done with the computer each time and she won’t be able to get to any of your files and you’ll be safe from having her mess with your preferences, settings, etc.
No? That’s not what you want to do?
Okay, I’ll give you a couple of neat Terminal tricks that can help you out, one that lets you make a folder closed to everyone and another that makes it disappear completely until you make it reappear.
In both cases, you’ll need to launch Applications –> Utilities –> Terminal.app. It’ll start out in your account “home” directory, which you can check by typing pwd. Move to the directory where your folder or files lives by typing in cd followed by the name of the directory.
For example, if I wanted to protect a folder on the Desktop, then I’d type in cd Desktop and move there.
Now, to make a folder completely locked and unreadable, simply type in:
$ chmod 000 my-protected-folder
You won’t get any feedback but you’ll end up with something like this (pay particular attention to the “testing123″ folder and how it’s portrayed):

To get back in when you want to, simply go back to the same place with the “cd” command and type in:
$ chmod 775 my-protected-folder
To hide a folder or file completely, simply preface its name with a “.”. For example, to hide “testing123″ I’d rename it “.testing123″:
$ mv testing123 ".testing123”
Wanna get that one back to normal? Go back to the same directory and type in the reverse: mv .testing123 testing123
So there you go, three possible solutions to your problem. Hope one of them works out for you!
About the Author
Dave Taylor has been involved with the Internet since 1980 and is
internationally known as an expert on both business and technology issues.
Holder of an MSEd and MBA, author of twenty books and founder of four
startups, he also runs a strategic marketing company and consults with firms
seeking the best approach to working with weblogs and social networks. Dave
is an award-winning speaker and frequent guest on radio and podcast
programs.

February 5th, 2008 at 7:07 pm
not sure if i head this from u but a program called safethis is the best program ever, it creates programs in dmg folder and asks for passwords all the time if entered, is great for multiple users trying to access anything