I really think that 022 is the right choice, for a very simple reason:
peoples expectations. It's just _common_.
No you can't. 002 makes no sense at all in a very common old-fashioned
setup with a "user" group.
Maybe I'm old, and these days most setups seem to give people their own
group (so I'm "torvalds:torvalds" on all the machines I have access to),
but it used to be _very_ common to have just a "user" group that all
normal users were part of (or have the default gid depend on something
like which department you are in).
In that situation, 002 is really effectively no different at all from 000.
Which is why 022 is the historical default for umask.
022 really is very easy to explain: "readability (and executability) is a
lot less dangerous than writability, and by default we only give
writability to the user". That's why we _don't_ commonly have 066 or 077
as the umask, and also why 002 is the default umask ONLY on systems where
users have their own individual groups by default.
Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html