I think you need to look at how you create files, not directories. As
far as directories go, that umask is acting correctly. It should forbid
the write bit for "group" and "other" permissions, on both files and
directories.
For example:
[1001] (lowell-desk) ~> umask 022
[1002] (lowell-desk) ~> touch baz
[1003] (lowell-desk) ~> ls -l baz
-rw-r--r-- 1 lowell family 0 Nov 24 07:44 baz
[1004] (lowell-desk) ~>
--
Lowell Gilbert, embedded/networking software engineer
http://be-well.ilk.org/~lowell/
Then what umask do I use to achieve 775? Do I use 002?
Yes.