3 ms·
I don't think umask setting affects the executable bits of files, just directories. You can try by entering something like umask 0; touch foo; ls -l foo
by pvg 16y ago
I don't think umask setting affects the executable bits of files, just directories. You can try by entering something like
umask 0; touch foo; ls -l foo
- CUViper 16y agoIt does affect files, but umask only subtracts permission bits. So if the program creating the file doesn't try to set it executable, then umask will never change that.