Applications not honoring UMASK

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Applications not honoring UMASK

Postby jimfent » Sep 8th, '24, 04:40

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?
jimfent
 
Posts: 1
Joined: Sep 8th, '24, 03:34

Re: Applications not honoring UMASK

Postby doktor5000 » Sep 8th, '24, 15:13

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18041
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron