Web lists-archives.com

Re: How to change default umask in Stretch?




No effect.

I added  "session optional pam_umask.so umask=0077" to the end of /etc/pam.d/common-session. Then I confirmed /etc/login.defs has a umask entry. Then I logged out and back in.

A new gedit document still reports permission rw-r--r--.

----- Original Message -----
From: "Dejan Jocic" <jodejka@xxxxxxxxx>
To: debian-user@xxxxxxxxxxxxxxxx
Sent: Monday, August 7, 2017 2:00:37 PM
Subject: 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" <jodejka@xxxxxxxxx>
> To: debian-user@xxxxxxxxxxxxxxxx
> 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.