Re: How to change default umask in Stretch?

2017-08-12 Thread Jonathan de Boyne Pollard
Henrique de Moraes Holschuh: > Note that the ideal implementation would be to inherit the umask [...] Jonathan de Boyne Pollard: > Actually, the ideal implementation from the GNOME point of view would be for > these programs to pass the umask from the client process to the server, just > like t

Re: How to change default umask in Stretch?

2017-08-12 Thread Henrique de Moraes Holschuh
On Sat, 12 Aug 2017, Jonathan de Boyne Pollard wrote: > Henrique de Moraes Holschuh: > > Note that the ideal implementation would be to inherit the umask [...] > > Actually, the ideal implementation from the GNOME point of view would be for > these programs to pass the umask from the client proces

Re: How to change default umask in Stretch?

2017-08-12 Thread Jonathan de Boyne Pollard
Henrique de Moraes Holschuh: Note that the ideal implementation would be to inherit the umask [...] Actually, the ideal implementation from the GNOME point of view would be for these programs to pass the umask from the client process to the server, just like they pass open file handles, the

Re: How to change default umask in Stretch?

2017-08-12 Thread Jonathan de Boyne Pollard
Greg Wooledge: It's beginning to sound like GNOME applications aren't even launched by GNOME at all, but rather by systemd/dbus. Somehow. GNOME Editor and other GIO applications work like how 16-bit Windows applications used to work. GNOME Terminal goes yet farther and not even the first

Re: How to change default umask in Stretch?

2017-08-09 Thread Reco
Hi. An update for the archives. On Wed, 9 Aug 2017 08:09:16 -0400 Greg Wooledge wrote: > On Tue, Aug 08, 2017 at 01:27:02PM +0300, Reco wrote: > > Or find gnome-session (or gnome-shell - I don't recall who exactly > > spawns user applications in GNOME) process pid, execute something lik

Re: How to change default umask in Stretch?

2017-08-09 Thread Garrett R.
Found this. Reuben Thomas reported this earlier in the year. Lot of guys tracked down PIDs. https://bugzilla.gnome.org/show_bug.cgi?id=780622 - Original Message - From: "Reco" To: debian-user@lists.debian.org Sent: Tuesday, August 8, 2017 6:27:02 AM Subject: Re: How to chan

Re: How to change default umask in Stretch?

2017-08-09 Thread Greg Wooledge
On Tue, Aug 08, 2017 at 01:27:02PM +0300, Reco wrote: > Or find gnome-session (or gnome-shell - I don't recall who exactly > spawns user applications in GNOME) process pid, execute something like > this on login: > > gdb -p $(pidof gnome-session) -ex 'p umask(0077)' --batch > > You'll need gdb to

Re: How to change default umask in Stretch?

2017-08-08 Thread Reco
Hi. On Mon, Aug 07, 2017 at 03:47:48PM -0500, David Wright wrote: > On Mon 07 Aug 2017 at 20:00:10 (+), Garrett R. wrote: > > Does anybody know, this gnome/systemd bug of umask, it this something that > > I will have to wait for Debian 10 before it is fixed? Or will Debian 9 > > impl

Re: How to change default umask in Stretch?

2017-08-07 Thread Henrique de Moraes Holschuh
On Mon, 07 Aug 2017, Garrett R. wrote: > Does anybody know, this gnome/systemd bug of umask, it this something > that I will have to wait for Debian 10 before it is fixed? Or will > Debian 9 implement a fix when/if gnome/systemd issues a fix? It is too early to tell. It depends on how complex the

Re: How to change default umask in Stretch?

2017-08-07 Thread David Wright
On Mon 07 Aug 2017 at 20:00:10 (+), Garrett R. wrote: > Does anybody know, this gnome/systemd bug of umask, it this something that I > will have to wait for Debian 10 before it is fixed? Or will Debian 9 > implement a fix when/if gnome/systemd issues a fix? > > I was hoping to be able to mov

Re: How to change default umask in Stretch?

2017-08-07 Thread Garrett R.
ginal Message - From: "Dejan Jocic" To: "Garrett R." Cc: debian-user@lists.debian.org Sent: Monday, August 7, 2017 2:32:30 PM Subject: Re: How to change default umask in Stretch? On 07-08-17, Garrett R. wrote: > No effect. > > I added "session optional pam_uma

Re: How to change default umask in Stretch?

2017-08-07 Thread Garrett R.
g it. - Original Message - From: "Dejan Jocic" To: "Garrett R." Cc: debian-user@lists.debian.org Sent: Monday, August 7, 2017 2:32:30 PM Subject: Re: How to change default umask in Stretch? On 07-08-17, Garrett R. wrote: > No effect. > > I added "session optional

Re: How to change default umask in Stretch?

2017-08-07 Thread Dejan Jocic
On 07-08-17, Garrett R. wrote: > 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--. > U

Re: How to change default umask in Stretch?

2017-08-07 Thread Garrett R.
uot;Dejan Jocic" To: debian-user@lists.debian.org 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 /

Re: How to change default umask in Stretch?

2017-08-07 Thread Dejan Jocic
rg > 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

Re: How to change default umask in Stretch?

2017-08-07 Thread Garrett R.
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" To: debian-user@lists.debian.org Sent: Monday, August 7, 2017 1:11:02 PM Subject: Re: How to change defa

Re: How to change default umask in Stretch?

2017-08-07 Thread Dejan Jocic
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 aft

Re: How to change default umask in Stretch?

2017-08-07 Thread Greg Wooledge
On Mon, Aug 07, 2017 at 12:55:37PM -0400, Felix Miata wrote: > Garrett R. composed on 2017-08-07 15:25 (UTC): > > > Please advise on where "/etc/profile.local" is. I can find no such entry. > > Like any .local file, it's an optional file. Any .local files that may exist > by > default have uncom

Re: How to change default umask in Stretch?

2017-08-07 Thread Dejan Jocic
On 07-08-17, Greg Wooledge wrote: > On Mon, Aug 07, 2017 at 07:02:14PM +0200, Dejan Jocic wrote: > > Ehh, disregard please. Just checked with gnome-terminal here, and it did > > respect umask settings in .profile. But gedit did not. > > If gnome-terminal is reading .profile, that means it must be

Re: How to change default umask in Stretch?

2017-08-07 Thread Greg Wooledge
On Mon, Aug 07, 2017 at 07:02:14PM +0200, Dejan Jocic wrote: > Ehh, disregard please. Just checked with gnome-terminal here, and it did > respect umask settings in .profile. But gedit did not. If gnome-terminal is reading .profile, that means it must be running your shell as a login shell, which i

Re: How to change default umask in Stretch?

2017-08-07 Thread Greg Wooledge
On Mon, Aug 07, 2017 at 06:54:13PM +0200, Dejan Jocic wrote: > Depends on terminal. If you use xterm under Gnome, it will respect umask > settings, wherever those are, global or local in .profile or .bashrc. > But gnome-terminal does not respect those settings. Guess that you > should file bug agai

Re: How to change default umask in Stretch?

2017-08-07 Thread Dejan Jocic
On 07-08-17, Dejan Jocic wrote: > On 07-08-17, Garrett R. wrote: > > Terminal confirms my umask is 022. That is, my entries at login.defs, > > xsessionrc, etc are not working. > > > > Thank you for your assistance, Greg. Before asking here, my research > > indicated gnome is the problem and it i

Re: How to change default umask in Stretch?

2017-08-07 Thread Felix Miata
Garrett R. composed on 2017-08-07 15:25 (UTC): > Please advise on where "/etc/profile.local" is. I can find no such entry. Like any .local file, it's an optional file. Any .local files that may exist by default have uncommented content only if the /local/ admin creates any. -- "The wise are know

Re: How to change default umask in Stretch?

2017-08-07 Thread Dejan Jocic
On 07-08-17, Garrett R. wrote: > Terminal confirms my umask is 022. That is, my entries at login.defs, > xsessionrc, etc are not working. > > Thank you for your assistance, Greg. Before asking here, my research > indicated gnome is the problem and it is because of systemd that there is a > prob

Re: How to change default umask in Stretch?

2017-08-07 Thread Garrett R.
debian, you might have some insight. Thank you for your efforts, much appreciated. - Original Message - From: "Greg Wooledge" To: debian-user@lists.debian.org Sent: Monday, August 7, 2017 12:14:43 PM Subject: Re: How to change default umask in Stretch? On Mon, Aug 07, 201

Re: How to change default umask in Stretch?

2017-08-07 Thread Greg Wooledge
On Mon, Aug 07, 2017 at 04:00:17PM +, Garrett R. wrote: > I have created a file named ".xsessionrc" and it is in my home folder > (~/.xsessionrc). Within this file I wrote this: umask 077. > > No change is evident. I first tried a relogin. No effect. I then rebooted. > Also no effect. Creati

Re: How to change default umask in Stretch?

2017-08-07 Thread Garrett R.
mentioned previously. So I have /etc/login.defs, ~/.profile and ~/.xsessionrc all with entry "umask 077". But the result is rw-r--r--. - Original Message - From: "Greg Wooledge" To: debian-user@lists.debian.org Sent: Monday, August 7, 2017 11:37:24 AM Subject: Re: How

Re: How to change default umask in Stretch?

2017-08-07 Thread Garrett R.
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. - Original Message - From: "Greg Wooledge" To: debian-user@lists.debian.org Sent: Monday, August 7, 2017 11:37:24 AM Subject: Re: How

Re: How to change default umask in Stretch?

2017-08-07 Thread Greg Wooledge
On Mon, Aug 07, 2017 at 03:25:27PM +, Garrett R. wrote: > I have set /etc/login.defs to a umask of 077. Also, I commented out the > USERGROUPS_ENAB entry. > > When I create gedit documents (for example), I am getting rw-r--r--. This > does not reflect umask 077. > > I then went to ~/.profil

Re: How to change default umask in Stretch?

2017-08-07 Thread Garrett R.
cal. - Original Message - From: "Felix Miata" To: debian-user@lists.debian.org Sent: Monday, August 7, 2017 12:50:35 AM Subject: Re: How to change default umask in Stretch? Garrett R. composed on 2017-08-06 20:50 (UTC): > The "old" methods for changing the defa

Re: How to change default umask in Stretch?

2017-08-07 Thread Greg Wooledge
On Sun, Aug 06, 2017 at 08:50:05PM +, Garrett R. wrote: > It appears systemd now manages umask. Can someone please describe how I can > change the default umask setting in Stretch? The umask *of what*? Of login shells? Of files uploaded via ftpd? Of files uploaded via sshd/builtin sftp? Of

Re: How to change default umask in Stretch?

2017-08-06 Thread Felix Miata
Garrett R. composed on 2017-08-06 20:50 (UTC): > The "old" methods for changing the default umask no longer work in Debian > Stretch. > It appears systemd now manages umask. Can someone please describe how I can > change the default umask setting in Stretch? Is your question based on the documen

Re: How to change default umask in Stretch?

2017-08-06 Thread Dennis Creedan
I think the default umask is defined in /etc/profile. On Sun, Aug 6, 2017 at 2:50 PM, Garrett R. wrote: > The "old" methods for changing the default umask no longer work in Debian > Stretch. > > It appears systemd now manages umask. Can someone please describe how I can > change the default uma