Apple Event: May 7th at 7 am PT

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

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.