Actually, some answers here are not correct. ZIP files can also have file permissions. (*) You can list the permissions of the files in your ZIP file with:
unzip -Z
Maybe the tool you used to create the ZIP file didn't store the permissions or didn't store them correctly.
So, if you made the ZIP file yourself, check the tool you made the ZIP file with. Maybe there is a way to set permissions before zipping (like with maven), or it preserves the original permissions (but that would only work on a system that supports permissions - i.e. not on Windows).
If you didn't make the ZIP file yourself, your only chance is to set the correct the permissions after unzipping, for example with
chmod -R [permissions] [directory]
(*) We use that feature in combination with the maven assembly plugin, where you can specify the fileMode for files that go into the ZIP file.
unzip
restores file permissions. It may be that the ZIP file has been created without file permissions stored (probably with something other than Unixzip
). In that case, restoring would obviously not be possible.