I have zip file created on windows and I want to extract it on Linux. For extracted files, I want to have permissions 644. However, extracting files end with 770.
I have tried
umask 644
unzip update.zip -d .
But it has no effect and permissions of extracted files are still 770.
unzip
is unaffected byumask
. One could of coursechmod
after extracting, but that either requires a separate folder files are extracted to or knowledge of archive contents.