すでに存在するzipファイルに対しパスワードを指定していしたい場合は、zipcloackコマンドを利用します。
以下にzipcloackコマンドを使用してすでにあるzipファイルにパスワードを設定する手順を記します。「
以下にパスワード設定の操作手順を記します。
$ unzip -l linux.zip Archive: linux.zip Length Date Time Name -------- ---- ---- ---- 7 09-14-12 16:24 centos.txt 7 09-14-12 16:24 debian.txt 7 09-14-12 16:24 fedora.txt 7 09-14-12 16:24 ubuntu.txt -------- ------- 28 4 files
zipcloack zipファイル名以下に実行例を記します。
$ zipcloak linux.zip Enter password: Verify password: encrypting: centos.txt encrypting: debian.txt encrypting: fedora.txt encrypting: ubuntu.txt
$ unzip linux.zip Archive: linux.zip [linux.zip] centos.txt password:
zipcloakコマンドは、zipファイルからパスワードのみを解除することもできます。