Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ZIP a file in unix with password

Posted on 2009-06-27
4
Medium Priority
?
1,223 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
[X]
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
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 375 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

730 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