-
Notifications
You must be signed in to change notification settings - Fork 13
umask
pyllyukko edited this page Feb 19, 2026
·
13 revisions
List of places you can configure umask.
/etc/login.defs-
/etc/profileor/etc/profile.d/ /etc/init.d/functionssudoers- systemd units (see UMask=)
-
pam_umask
-
umask=entry in the user's GECOS field -
umask=argument -
UMASKentry from/etc/login.defs -
UMASK=entry from/etc/default/login
-
/etc/limits
/etc/login.conf
/etc/bashrc
- /etc/csh.login
- /etc/zprofile
Debian:
pam (1.5.3-7) unstable; urgency=medium
Starting with PAM version 1.5.3, Debian supports usergroups for default
umask of users logging in. If the primary group name of a user
matches their primary user name (user pat's default group is also
called pat), then files will be group writable by default. To disable
this use a group name that differs from the user name or add
nousergroups to the pam_umask line in
/etc/pam.d/common-session and
/etc/pam.d/common-session-noninteractive:
session optional pam_umask.so nousergroups
-- Sam Hartman <hartmans@debian.org> 2024年4月08日 16:15:58 -0600