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

Password protect zip files-Terminal help

Hi. running OS 10.7.4 on my MacBook Pro. I want to password protect a zip file (FPTGH.zip) to send to both PC and Mac users. I created the zip file using the finder. That worked like a champ. The file is on my desktop. I opened Terminal and entered zip -e, my zip file name.zip, entered the password (correctly) twice, and I repeatedly get the following message.


scm's MacBook-Pro:~ scm$ zip -e FPTGH.zip
Enter password:
Verify password:


zip error: Nothing to do! (FPTGH.zip)
scms-MacBook-Pro:~ scm$


Then I tried creating the zip from the original file, and I get the same message:


scm's-MacBook-Pro:~ scm$ zip -e FPTGH.txt
Enter password:
Verify password:


zip error: Nothing to do! (FPTGH.txt)
scms-MacBook-Pro:~ scmorgan$


WHAT am I doing wrong?


Stumped in Costa Rica. SC Morgan

macbook pro

Posted on May 30, 2012 3:45 PM

Reply
Question marked as Best reply

Posted on May 30, 2012 6:02 PM

To create an password protects zip of the file FPTGH.txt located on your desktop:


cd ~/Desktop

zip -e FPTGH.zip FPTGH.txt


Enter the password and verify it. FPTGH.zip will appear on your desktop.

16 replies

May 30, 2012 5:15 PM in response to Linc Davis

Linc, I do have a file named FPTGH.txt on my desktop. I highlight it (although that shouldn't make an difference) and run the script in Terminal and continue to get the "zip error" mesage.


I've tried FPTGH FPTGH; FPTGH FPTGH.txt; and FPTGH.txt FPTGH.txt all with the error responses. When I try matching file names I get this:


sarah-morgans-MacBook-Pro:~ scmorgan$ zip -e FPTGH.txt FPTGH.txt

Enter password:

Verify password:



zip error: Invalid command arguments (password verification failed)

sarah-morgans-MacBook-Pro:~ scmorgan$


When I try use mismatched file names I get this:


sarah-morgans-MacBook-Pro:~ scmorgan$ zip -e FPTGH FPTGH.txt

Enter password:

Verify password:

zip warning: name not matched: FPTGH.txt



zip error: Nothing to do! (FPTGH.zip)

sarah-morgans-MacBook-Pro:~ scmorgan$

Sep 8, 2012 6:35 PM in response to Bugsy_Cali

NOTE: zip encryption is rather weak.


An Apple approach would be to use Applications -> Utilities -> Disk Utility to create a compressed and encrypted .dmg file which would use industry standard encryption.

There are lots of encryption and compression utilities. Apple would be crazy to try creating "It Just Works" solutions for everyone of them.

Oct 1, 2013 9:29 AM in response to X423424X

Hi there!


This also helped me. I was having the same problem with the error "Nothing To Do!" but then copied and pasted your command exactly and it worked.


However, I have a new problem. Terminal creates the .zip file and places it on my desktop but when I go to unarchive it I get the error message "Unable to unarchive". The file I created a password protected .zip of is a Quicktime (.mov) file. 1.97 gigs in size. Attached is screenshot.


Any ideas or help is appreciated.


-Jeremy


User uploaded file

Password protect zip files-Terminal help

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