Solved

ZIP a file in unix with password

Posted on 2009-06-27
4
1,208 Views
Last Modified: 2013-12-26
is it possible to zip a file in unix(solaris) with password protection inside a shell script.
0
Comment
Question by:anilmahanty
  • 2
  • 2
4 Comments
 
LVL 9

Expert Comment

by:masheik
ID: 24730252
zip the file first,
use crypt command to protect the zip file using password
http://www.u.arizona.edu/udocs/unix-cmds.html#crypt
0
 

Author Comment

by:anilmahanty
ID: 24733925
Hi,
Thanks for this solution.
But its not work like zip with password.
Just we are encrypting a file, is there any possible way to zip with password.
Because that password protected file need to send in mail and that zip will open in windows.
For this it need to zip with password which one can also open in windows also.

Regards,
  Anil
0
 
LVL 9

Accepted Solution

by:
masheik earned 125 total points
ID: 24734177
hello anilji,
you can use "pkzip" to zip a file using password.
to set a password when you zip a file,use the command given in the following link,
http://www.uwm.edu/~dtoth/pkzip.html#password
i am right now not on unix so i can't able to test,
hope this helps...
0
 

Author Closing Comment

by:anilmahanty
ID: 31597643
Hi Masheik,
Ok, Thanks for this info, now i need to install PKZIP in my UNIX server.
After that using PKZIP i can zip with password.

Regards,
  Anil
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Replacement selected text 2 65
notReplace  challenge 53 151
no14 challenge 14 72
I could not set window to top 4 40
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question