I cannot get the default umask for a session to be
I have edited
/etc/login.defs and set the value to
Also I've made sure the following entry exists in
session optional pam_umask.so
While this configuration seems to work when the user logs in using
su it doesn't when the login happens through mdm. Both mdm and su configuration files in pam.d include common-session.
username@hostname ~ $ umask 0022 username@hostname ~ $ su username Password: username@hostname ~ $ umask 0077
This problem does not occur when using GDM or LIGHTDM instead of MDM.
Any ideas on what could be a possible cause of this?