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
16 replies

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

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$

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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 Account.