Setting umask at /etc/profile for all users is not respected
FBachofner opened this issue · comments
Mint 18 (and earlier) does not respect the umask setting in the file /etc/profile
(which is supposed to set umask for all users of the system)
Discussion and workaround available at the Mint forums:
https://forums.linuxmint.com/viewtopic.php?p=1236385
Hi @FBachofner,
I think it's due to https://github.com/linuxmint/mdm/blob/master/daemon/slave.c#L3006
You can try and move that line up, before the presession script is run.
The umask is set by the pam login system (consistently across displays, shells, remote logins, ...).
There should't be any hardcoded default umask setting in the individual session inits at all, so you can simply comment thi out or remove it completely in mdm display manager.
(For specific writes the umask may of course be set explicitly, if appropriate, and then reverted to the priorly saved old value, instead of a hard coded value. May this be the error that was originally made when this line was introduced?)
Related ubuntu bugs: https://wiki.ubuntu.com/MultiUserManagement