Where does umask get set at system startup? Mine seems to have changed to 0002 recently

Peter Flynn peter at silmaril.ie
Wed Apr 21 19:08:48 UTC 2021



On 21/04/2021 17:16, Chris Green wrote:
> I have quite a few systems running [x]ubuntu, a mix of 20.04, 20.10
> and maybe others.
> 
> The default umask always used to be 0022 but all my systems now have
> it set to 0002.  I can't see where it's set anywhere in /etc, can
> anyone tell me how it gets set and why (if it has) the default has
> been changed from 0022 to 0002?

I think a user's personal umask is set in ~/.profile and that gets set 
up from the master copy in /etc/skel/.profile

Peter






More information about the ubuntu-users mailing list