Open a password protected zip file in OS X [solved]

The Archive Utility in OS X is great but accepts no parameters, so it’s impossible to open a password protected zip file with it. When you double click on it it says “Unable to unarchive ‘name of’ into ‘directory’. (Error 1 – Operation not permitted.) In Safari, the download will say “Decompression failed”.

Instead, open up terminal (Applications > Utilities > Terminal) and cd to the directory the zip file is in, such as:

cd ~/Downloads


cd ~/Desktop

Then, type:

unzip -P [password]

where is the zip file and [password] is your password.

Then you can launch the file with open, or run

open .

to open the current folder in the finder to double click on your unzipped file.

Trackback this Post | Feed on comments to this Post

Leave a Reply

You must be logged in to post a comment.