Is it possible to change the default permissions in UNIX (666 for files and 777 for directories)?.
I am not talking about using the command "umask".
I mean, with the command "umask" you can modify permissions from a default permissions x. Is it possible to make "umask" modifies permissions not from x but from y?
I supouse that the numbers 666 and 777 are defined in some file anywhere in the file system. Where are they defined? How can I change it?
When someone writes a program that creates files, they decide on what file permission to use. umask can be used to inhibit some some bits that the programmer tried to set. But it can't turn on new bits that the programmer did not want. Many programmers use that 666, 777 standard. But if you don't like the choice that a programmer made, write your own version of the program that operates the way you want. No other way to do it.
umask does not modify permissions on any existing file. It only affects the permissions on newly created files. In your shell prompt, type umask, which shows the current setting. There's more about umask here