-1

I would like the permissions on files that I create with gnome apps (e.g., gedit and libreoffice) to respect the umask I set.

I have set umask to 027 in ~/.profile and /etc/login.defs. I've also followed the directions from here by adding a line to /etc/pam.d/common-session: How to set system wide umask?

Nothing is working.

I am able to get the umask setting to work if I create files in vi or nano from gnome-terminal (after setting umask 027 in .bashrc). But I would like to get this umask respected in gnome apps like gedit also.

user847
  • 23
  • 5

1 Answers1

0

Gnome applications in question are likely launched by systemd user instance, which sets the umask to 022 regardless the umask configured using PAM.

This question has also been asked on U&L SE and has more answers there.

sebasth
  • 716
  • 7
  • 18
  • Is there any way to change the default umask now without having to wait for the bug fix you initiated? – user847 Jul 21 '17 at 12:22
  • I am not currently aware of any workarounds; umask set by pam_umask is replaced by systemd's default umask. – sebasth Jul 22 '17 at 21:14