You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Folders on my new iMac

Is there a way to lock a certain folder cause i share my Mac with my wife isd there anyway to lock that one folder so she cannot get into it and yes its not xxx rated stuff? Something I am doing for her but without her knowing for Christmas? Then delete the folder. I do not want her to log in as a new user because there is things she need on here and also want to make sure she does not see it.


Thank you


Frank

iMac 24″, macOS 13.0

Posted on Nov 28, 2022 7:13 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 28, 2022 7:37 PM

Hide a Folder from Finder


Method One:


Create or rename a folder whose name starts with a period. You'll need to first open Finder navigate to where you wish to create the folder and then press Shift+CMD+Period [ ⇧ ⌘ . ] to show hidden dot folders. These are hidden folders in UNIX and you normally don't need to see them (unless you are a UNIX person or a developer). Now the Finder will let you name a folder starting with a period. Press the same key sequence to hide the dot files.


Method Two:


This one is a bit sneakier but will require using Terminal. Open Terminal and type chflags hidden <path to folder>. To obtain the path to the folder, drag and drop the folder on Terminal and then press Return.


To navigate to the hidden folder. Press Shift+CMD+G [ ⇧ ⌘ G ] and type in the path such as ~/Secrets and press Return and you will end up in the hidden folder.


To unhide the folder open Terminal and type chflags nohidden <path to folder>. You can cheat and type the ~/Secrets. The ~/ symbols mean start from your home folder.


Neither of these methods are very secure to anyone with intimate file management on macOS but it should work for your needs.


Bonus Third Method:


For true security you can use Disk Utility to create a Disk Image and check the box to encrypt it. You'll be required to enter a password. Don't save it to the Keychain or the wife would be able to open it by just double-clicking. Otherwise it will ask for the password. Do not forget the password there is no way to reset it.





2 replies
Question marked as Top-ranking reply

Nov 28, 2022 7:37 PM in response to DODGE01CHALLENGERSRT01_01

Hide a Folder from Finder


Method One:


Create or rename a folder whose name starts with a period. You'll need to first open Finder navigate to where you wish to create the folder and then press Shift+CMD+Period [ ⇧ ⌘ . ] to show hidden dot folders. These are hidden folders in UNIX and you normally don't need to see them (unless you are a UNIX person or a developer). Now the Finder will let you name a folder starting with a period. Press the same key sequence to hide the dot files.


Method Two:


This one is a bit sneakier but will require using Terminal. Open Terminal and type chflags hidden <path to folder>. To obtain the path to the folder, drag and drop the folder on Terminal and then press Return.


To navigate to the hidden folder. Press Shift+CMD+G [ ⇧ ⌘ G ] and type in the path such as ~/Secrets and press Return and you will end up in the hidden folder.


To unhide the folder open Terminal and type chflags nohidden <path to folder>. You can cheat and type the ~/Secrets. The ~/ symbols mean start from your home folder.


Neither of these methods are very secure to anyone with intimate file management on macOS but it should work for your needs.


Bonus Third Method:


For true security you can use Disk Utility to create a Disk Image and check the box to encrypt it. You'll be required to enter a password. Don't save it to the Keychain or the wife would be able to open it by just double-clicking. Otherwise it will ask for the password. Do not forget the password there is no way to reset it.





Folders on my new iMac

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.