Page 1 of 1

Applications not honoring UMASK

PostPosted: Sep 8th, '24, 04:40
by jimfent
Several GUI applications I use do not apply the permissions I want when they create files or directories. Directories are created with 0755 permission and files with 0644 permission. I want them created with 0775 and 0664. This affects multiple applications: LibreOffice, Krusader, Konversation. It doesn't seem to matter where I create the file, whether it's in my home directory on in a public directory with 0777 permissions.

I've set UMASK to 002 everywhere I can find it (including some places I probably shouldn't have) and added it to the various places where it's recommended (/etc/bashrc, /etc/profile/, /etc/login.defs, ~/.bashrc, /etc/profile.d/set-umask.sh).

If I open a terminal window, UMASK shows 0002, and if I launch the applications from the terminal, they act the way I want.

Is there some other setting I need to configure?

Re: Applications not honoring UMASK

PostPosted: Sep 8th, '24, 15:13
by doktor5000
If applicatons set a more restrictive umask themselves during runtime, there's not much you can do about that if it's not configurable in that application.
You can only search for issues with those specific applications, as an example here's libreoffice:
https://ask.libreoffice.org/t/how-to-ch ... iles/53887
https://forums.linuxmint.com/viewtopic.php?t=300791


On a related note you listed mostly shell initialisation files. If you don't run an interactive shell most of those are pretty irrelevant, even more so for a graphical desktop environment.
I'd probably have a look at pam_umask