Hi,
all your code does is assign the value '0027' to a variable named 'umask'. To actually change the umask value you will have to issue
at some point. Or, if you want to use the variable then it should be
Possible error sources are that your script might not issue the actual umask command or it is not being sourced at all. Please post your complete /etc/bash.bashrc and your ~/.bashrc file. Chances are that the value is overwritten at some point. Also note, that if bash is called with 'sh' it default to --norc option:
Code:
--norc Do not read and execute the system wide initialization file
/etc/bash.bashrc and the personal initialization file ~/.bashrc
if the shell is interactive. This option is on by default if
the shell is invoked as sh.