Forum Discussion
SirRaott
5 months agoIron Contributor
How to lock a folder on mac with password without disk utility?
Hi tech experts, I share a MacBook Pro at home with my younger brother. Everything works fine as the computer has decent hardware specs. However, there is one annoying issue that my brother could ea...
whestar11
5 months agoIron Contributor
The Terminal app has the built-in feature to password protect a folder on mac with password.
First, open the Terminal app on your Mac.
Next, use the following command to lock a folder on mac with password:
zip -er ~/Desktop/Locked.zip /path/to/your/folderReplace /path/to/your/folder with the full path of your folder.
You'll be prompted to enter and verify a password.
A Locked.zip file will appear on your Desktop—double-clicking it will require the password to extract.
Note: This method encrypts the content but does not prevent deletion of the ZIP file.