Blog
INFO PRESERVE PERMISIONS
!!! Zip still doesn't support unix file permissions. !!! It doesn't matter if it was created on windows or *nix.
Zip 3.0 SUPPORTS preserving files/dirs UNIX permissions and UID/GID ownership data. zip stores it by default but you need to use unzip in an special way to restore them:
unzip must be used with the -X flag.
unzip must run as root to set the files/dirs UID/GID. If you run it as a normal user then the UID will be always the one of the current user and the GID will be restored ONLY IF the current user belongs to that group.
Strana 9 z 183