Do you have a file
/etc/login.defs in Ubuntu? If so, you'll find it in there. It will (or should) look like
Code:
# Default initial "umask" value.
# UMASK is also used by useradd and newusers to set the mode of new home
# directories.
# 022 is the default value, but 027, or even 077, could be considered
# better for privacy. There is no One True Answer here: each sysadmin
# must make up her mind.
UMASK 022
If it's not there, try entering the above (and, of course, changing
022 to
077.
While I'm thinking about it, you could simply set it in
/etc/profile with
Although that's a little overkill (you do it in
/etc/profile to be sure you set the value in all shells -- bear in mind, however, that an individual user can override that setting in their own
~/.profile).
If that doesn't work, try (as root or sudo) to find the actual setting
Code:
cd /etc
find . -type f -print | grep -i umask
Hope this helps some.