Re: How to change default umask in Stretch?
On 07-08-17, Garrett R. wrote:
> I just tried this, adding "session optional pam_umask.so umask=0077" to the end of the /etc/pam.d/login file.
> No effect.
> ----- Original Message -----
> From: "Dejan Jocic" <firstname.lastname@example.org>
> To: email@example.com
> Sent: Monday, August 7, 2017 1:11:02 PM
> Subject: Re: How to change default umask in Stretch?
> On 07-08-17, Garrett R. wrote:
> > I apologize for the omissions.
> > I am booting debian to GDM. I login. I then open gedit (or libreoffice, etc). I type document. I save it.
> Have you tried to set in /etc/pam.d/login this:
> session optional pam_umask.so umask=0077
> Logout and login back after that?
Now try to add it too to the /etc/pam.d/common-session and to set it up
in /etc/login.defs to your preferred value. Of course, logout/login
after all that.