On 15/07/2024 09:15, Alan D. Salewski wrote:
I suspect that most people /do/ change it, once they become aware of it,
for the very reason stated in the comment above 'UMASK' in the
/etc/login.defs file:
<quote>
# UMASK is the default umask value for pam_umask and is used by
# useradd and newusers to set the mode of the new home directories.
# 022 is the "historical" value in Debian for UMASK
# 027, or even 077, could be considered better for privacy
# There is no One True Answer here : each sysadmin must make up
his/her
# mind.
...
UMASK 022
</quote>
Have you tried to change it?
<https://bugs.debian.org/583958>
<https://bugs.debian.org/646692>
pam_umask: umask in /etc/login.defs not respected cause libpam_umask is
not configured
Fixed in versions pam/1.5.3-1, pam/1.5.3-4
Wed, 28 Feb 2024 05:31:34 +0000
Not to mention systemd user sessions discussed in another branch of this
thread.