5

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).

3
  • Surely this is easy to test yourself, create your deployment then erm deploy it in a lab and see what happens.
    – user9517
    Commented Apr 1, 2014 at 8:12
  • 1
    I am always glad to proof something doing an experiment, but what I was looking for is a link to some standart or specification, CLEARLY STATING if it is possible or not. Commented Apr 1, 2014 at 8:43
  • Why don't you read the zip specification then?
    – user9517
    Commented Apr 1, 2014 at 8:53

2 Answers 2

11

Yes, it is.

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.

1
1

Yes,

  • Create you deployment.
  • Transfer it to another machine.
  • Deploy the application.
  • Compare the permissions on the reference machine with the lab machine.

Profit!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .