3 ms·
Couldn't you just set an appropriate umask and then make a copy of chmod?
by RexRollman 16y ago
Couldn't you just set an appropriate umask and then make a copy of chmod?
- pvg 16y agoI 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.