Making new files automatically executable?

file, umask, unix

Solution

umask for files is subtracted from 666 and for directories it is subtracted from 777. So if your umask is 002 and you create a directory, you get 775 (777 - 002), and if you create a file you get 664 (666 - 002).

Problem

Is it possible to make all newly created files have the execute permission when they are created? Why can't I grant it by default?

Original source

Related problems