Menu

#1 Need information on feature

open
nobody
None
5
2007-03-21
2007-03-21
No

The current compilation of Linux that I have on my machine holds Unzip 5.52. I need to unzip a password protected file, but I need the password sent by command line args. Looking into the code, I noticed a -P option that is not covered in help. Does it do what I need? What do I need to do to use it?

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I thank everyone who replied me on this feature. I need a bit more of information on it now.
    I worked my way through understanding this parameter and while I can unzip password protected files using the unzip software and zip password protected files with the zip software, I seem to be unable to update or freshen password protected zip files.
    Current line I am using is:
    zip -fjq -P <password> <file> /tmp

    It gives me the error that you receive when you type in the wrong password. It might be an untested scenery, I don't know.

     
  • Ed Gordon

    Ed Gordon - 2007-10-07

    Logged In: YES
    user_id=1172496
    Originator: NO

    Please make sure you are using the latest version of Zip. That is Zip 2.32 which fixed some minor problems. You might also try the latest Zip 3.0 beta that handles encryption better.

    Note that entries are encrypted using the password provided, not archives, and so different entries can have different passwords and Zip currently only supports using a single password for updating archives in one operation. Any entry that uses a different password is copied unchanged to the updated archive.

    Can you verify the version of Zip being used?

     

Log in to post a comment.