I have a simple problem which I am unable to solve: I want to set the umask to 002 for all users on a Kubuntu 13.10 installation, but no matter what I try, it is always 022.
I suppose the correct way to do this would be to set the UMASK in /etc/login.defs. In the default installation, it already contains
According to the comments in login.defs, that already should result in a umask of 002. Since it did not work, I also tried setting UMASK 002, but did not work either.
I also checked the /etc/pam.d configuration files and the lightdm file includes common-session, which in turn includes
I also tried to set the GECOS field via
for one user, but did not work either. The umask is always 022.
I also tried to turn debugging on for pam, adding "debug" to the pam_umask line in /etc/pam.d/common-session, but there is no output in the logs (I also enabled debug in rsyslog.conf) - maybe pam_umask is not used at all?
Does anybody know why pam_umask does not work? And could anybody tell how to set the umask?
(I want to set this for all programs started in KDE, so I assume .bash_XXX or .profile will not work...)
I suppose the correct way to do this would be to set the UMASK in /etc/login.defs. In the default installation, it already contains
Code:
#... UMASK 022 #... and ... USERGROUPS_ENAB yes
I also checked the /etc/pam.d configuration files and the lightdm file includes common-session, which in turn includes
Code:
session optional pam_umask.so
Code:
sudo chfn -o "umask=002" username
I also tried to turn debugging on for pam, adding "debug" to the pam_umask line in /etc/pam.d/common-session, but there is no output in the logs (I also enabled debug in rsyslog.conf) - maybe pam_umask is not used at all?
Does anybody know why pam_umask does not work? And could anybody tell how to set the umask?
(I want to set this for all programs started in KDE, so I assume .bash_XXX or .profile will not work...)
Comment