libpam-umask | adjust users' default umask using PAM | Mehr ...
This PAM module sets the umask for successfully authenticated sessions. The umask affects the permissions assigned to newly created files by default. . This package is useful to ensure that users' umasks are set consistently whether their session is initiated by login, SSH, a display manager for the X Window System, or some other means.