ZIP a file in unix with password

Posted on 2009-06-27
Last Modified: 2013-12-26
is it possible to zip a file in unix(solaris) with password protection inside a shell script.
Question by:anilmahanty
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Expert Comment

ID: 24730252
zip the file first,
use crypt command to protect the zip file using password

Author Comment

ID: 24733925
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.


Accepted Solution

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,
i am right now not on unix so i can't able to test,
hope this helps...

Author Closing Comment

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.


Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Macro to save highlighted rows as a separate file 5 51
Excel Use VBA to get user's Mac Address for their computer 5 416
Line meaning 9 99
Problem to App 4 145
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

752 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