Re: Default "tar" umask..

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Friday, January 5, 2007 - 2:40 pm

On Fri, 5 Jan 2007, Junio C Hamano wrote:

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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Default "tar" umask.., Linus Torvalds, (Sat Dec 30, 11:45 am)
Re: Default "tar" umask.., Junio C Hamano, (Sat Dec 30, 12:27 pm)
Re: Default "tar" umask.., rene.scharfe, (Fri Jan 5, 1:39 pm)
Re: Default "tar" umask.., Junio C Hamano, (Fri Jan 5, 2:03 pm)
Re: Default "tar" umask.., Linus Torvalds, (Fri Jan 5, 2:40 pm)
Re: Default "tar" umask.., Junio C Hamano, (Fri Jan 5, 3:15 pm)
Re: Default "tar" umask.., rene.scharfe, (Fri Jan 5, 3:30 pm)
Re: Default "tar" umask.., Junio C Hamano, (Fri Jan 5, 3:40 pm)
Re: Default "tar" umask.., Krzysztof Halasa, (Sun Jan 7, 8:20 am)
Re: Default "tar" umask.., Junio C Hamano, (Sun Jan 7, 2:28 pm)