use*_*145 1 permissions compression file-permissions
我正在使用 Maven Assembly 插件将我的应用程序与配置/设置文件捆绑在一起。它允许指定与文件一起存储的权限,这非常方便。
我仍然没有找到确认,即 ZIP 存档能够存储 UNIX 权限。是吗?(如果您回答是或否,请张贴一些证据)。
从 unzip(1) 联机帮助页中:
Dates, times and permissions of stored directories are not restored
except under Unix. (On Windows NT and successors, timestamps are now
restored.)
Run Code Online (Sandbox Code Playgroud)
所以是的,可以存储权限。