In my shell script I am using the zip command to zip the log files. The zip file is password protected. But there is a dicey.
I want the output as:
1) All files should be zipped including sub-directories' files
2) All files (individually) should be Password protected (may be common or different)
3) User should feed the password as input just once.
Condition 1 is met. But in Condition2 the sub-directory files are not password protected.Rather the sub-directory is password protected.
I used
Here password I handled in variable (condition 3) and without any interference zip command works. I tried using zip command option -e (as zip -r -e ...). But it prompts for password twice which is not recommended. Or is there any way to get the password from user as input and feed the same in run time when it prompts for Password while using -e option?
Please suggest.
Last edited by jim mcnamara; 12-22-2012 at 12:39 PM..
How to set password in zip files under unix?
There are password protection available in various os.
Does unix has password protection for zip files?
Is zip and gzip command has it? (6 Replies)
Hello,
I am trying to return the name of the resulting file from a .zip archive file using unix unzip command.
unzip c07212007.cef7081.zip
Archive: c07212007.cef7081.zip
SecureZIP for z/OS by PKWARE
inflating: CEP/CEM7080/PPVBILL/PASS/G0063V00
I used the following command to unzip in... (5 Replies)
I'm wondering if there is a way to zip a file and password protect it non-interactively.
zip -e will prompt for a password but I don't want a prompt. This needs to be done automatically as part of a shell script.
I'm using the zip command because the will be unzipped by a Windows machine. ... (1 Reply)
Hi Experts,
I am an SAP ABAP developer and compleatly stranger to unix and I need a help to extend a small peice of code.
Our requirement is to zip a file with password protection in a specified directory. Following is the code I am using to zip a file ZZZZ.TXT.
Here YYYY = is the path... (3 Replies)
I am trying to zip a file with password protection.
I have read all or atleast most of the threads on the website, but couldn't come up with a solution.
I am running ZIP version 2.3 on HP-UX but I dont see the -P (password) option. I read somewhere that free versions of zip don't come with... (5 Replies)
Hi,
I'm working on Solaris 9 and i need to unzip a password protected zip, which i can do using
zip -Ppassword filename
however when i have done what i need to do with the file is to zip the file back up with a password. Zip on my system is version 2.3 and does not support this?
How can... (0 Replies)
Hi Guru,
I have assignment to create script to compress file as .ZIP with password.
I don't know the command line in AIX. It's very new for me.
I'm try to use zip or tar but I don't have any option for encrypt with password.
Please kindly suggest me.
Thank you very much.
Multidev (7 Replies)
Hi
We send *.csv with sensitive data to our customers. Our customers open those files with Excel.
A new requirement is that we password protect those CSV files.
I thought to pack them with ZIP and assign a password to the archive.
But Solaris 10 can't encrypt ZIP files.
$ zip -P... (12 Replies)
zip -P abc -r FBE_SalesRepAccount_20170913125741.zip FBE_SalesRepAccount_20170913125741.txt
zip error: Invalid command arguments (encryption not supported)
zip -v
Copyright (C) 1990-1999 Info-ZIP
Type 'zip "-L"' for software license.
This is Zip 2.3 (November 29th 1999), by Info-ZIP.... (1 Reply)