Solved

ZIP a file in unix with password

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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 explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now