Is ZIP archive capable of storing permissions

compressionfile-permissionspermissions

I am using Maven Assembly plugin to bundle my application along with configuration/settings files. It allows to specify persmissions to be stored along with files, which is quite convenient.

Still I never found a confirmation, that ZIP archive is capable of storing UNIX permissions. Is it? (please, post some proof if you answer either yes or no).

Best Answer

From the unzip(1) manpage:

   Dates,  times  and  permissions  of stored directories are not restored
   except under Unix. (On Windows NT and successors,  timestamps  are  now
   restored.)

So yes, permissions can be stored.