Quote:
Originally Posted by vipin310379
rule2 : newly created files can not have ëxecutable bit set
|
Not true. It depends on what the program creating the file asks for. A program
must specify
something in the
mode argument when creating a file, and whatever value it puts there will be modified by
umask and used as the permissions. Programs used primarily for non-executable files will usually use 0666 unless security concerns indicate that something stricter would be appropriate (e.g., programs that manage encryption keys). Programs like the linker (
ld) that create executable files commonly use 0777.