LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   How do I extract password pretected .zip files in linux (http://www.linuxquestions.org/questions/linux-general-1/how-do-i-extract-password-pretected-zip-files-in-linux-305822/)

i_s 03-25-2005 03:36 AM

How do I extract password pretected .zip files in linux
 
Hi,

I am wondering how do I extract password protected .zip in linux (I am using Suse 9.2). I have the password, Ark can see the contents of the files but whenever I try to extract them I get an error!

Thanks.

pk21 03-25-2005 04:19 AM

man unzip:

-P password
use password to decrypt encrypted zipfile entries (if any).
THIS IS INSECURE! Many multi-user operating systems provide
ways for any user to see the current command line of any other
user; even on stand-alone systems there is always the threat of
over-the-shoulder peeking. Storing the plaintext password as
part of a command line in an automated script is even worse.
Whenever possible, use the non-echoing, interactive prompt to
enter passwords. (And where security is truly important, use
strong encryption such as Pretty Good Privacy instead of the
relatively weak encryption provided by standard zipfile utili-
ties.)

i_s 03-25-2005 04:47 AM

Thanks,

I was also able to locate that. I used the command

unzip -P password zipfile

Thanks again.

i.s.


All times are GMT -5. The time now is 01:53 AM.