Where does umask get set at system startup? Mine seems to have changed to 0002 recently
Tom H
tomh0665 at gmail.com
Thu Apr 22 11:51:20 UTC 2021
On Wed, Apr 21, 2021 at 10:31 PM Oliver Grawert <ogra at ubuntu.com>
wrote:
> Am Mittwoch, den 21.04.2021, 17:16 +0100 schrieb Chris Green:
>>
>> 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?
>
> the default has actually been changed from 21.04 onwards [1] [2]
> but that should surely not affect your 20.04/20.10 installs :)
>
> [1]
> https://lists.ubuntu.com/archives/ubuntu-devel-discuss/2020-November/018842.html
>
> [2] https://bugs.launchpad.net/ubuntu/+source/adduser/+bug/48734
This bug/patch is about changing "DIR_MODE=0755" to "DIR_MODE=0750" in
"/etc/adduser.conf".
Does it change the umask? Or does it only change the mode of
"/home/<user>"? Anyway, if it does change the umask, it would be to
"027" not to "002".
More information about the ubuntu-users
mailing list