The current umask is also applied here.
Typically, files are created using 0777 (if the executable or directory) or 0666 (other files.)
The OS then applies the current umask to this value, which results in 0755 resp. 0644 visible on most files, since the most common umask is 0022 .
Your solution would be to set umask to 0 .
glglgl
source share