I set my umask in my .profile to 0027.
When I run most applications in my GNOME session, e.g. Emacs, or another terminal, such as xterm, the umask within is 0027.
When I run gnome-terminal (3.18.3, Ubuntu 16.04), my umask is 0002.
As far as I can tell, I am starting gnome-terminal and xterm (also tried uxterm) in the same way. Both are configured not to start a login shell.
If I run "umask" at the top of my .bashrc, in gnome-terminal it prints 0002, and in xterm, 0027.
If I run xterm from within gnome-terminal, the umask remains 0002.
Running gnome-terminal.real directly has the same effect.
I tried killing gnome-terminal-server and running gnome-terminal: same result.
If I set the umask in my .bashrc, then the setting is respected.
I set my umask in my .profile to 0027.
When I run most applications in my GNOME session, e.g. Emacs, or another terminal, such as xterm, the umask within is 0027.
When I run gnome-terminal (3.18.3, Ubuntu 16.04), my umask is 0002.
As far as I can tell, I am starting gnome-terminal and xterm (also tried uxterm) in the same way. Both are configured not to start a login shell.
If I run "umask" at the top of my .bashrc, in gnome-terminal it prints 0002, and in xterm, 0027.
If I run xterm from within gnome-terminal, the umask remains 0002.
Running gnome-terminal.real directly has the same effect.
I tried killing gnome-terminal- server and running gnome-terminal: same result.
If I set the umask in my .bashrc, then the setting is respected.