Link to home
Start Free TrialLog in
Avatar of anilmahanty
anilmahanty

asked on

ZIP a file in unix with password

is it possible to zip a file in unix(solaris) with password protection inside a shell script.
Avatar of masheik
masheik
Flag of India image

zip the file first,
use crypt command to protect the zip file using password
http://www.u.arizona.edu/udocs/unix-cmds.html#crypt
Avatar of anilmahanty
anilmahanty

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of masheik
masheik
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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