Solved

ZIP a file in unix with password

Posted on 2009-06-27
4
1,203 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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Whole sheet autoscrub still needed 19 51
scoreUp challenge 14 63
Not needed 13 114
Problem to App 4 83
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

825 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