SUMMARY *** No matter what umask is set, XML files are saved with 0644 permissions. *** STEPS TO REPRODUCE 1. Setup umask at, say, 0077 (no permissions for G and O). 2. Open a document with ocular and browse it. 3. Check file permissions in .local/share/okular/docdata/ for the file named after the browsed document OBSERVED RESULT XML file has permissions 0644 EXPECTED RESULT XML file permissions should obey umask (0600 in the example case) SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION
I think I have got the issue to the core. The entire KDE environment COULD NOT started AFTER the user initialization script have been run. In my case, it seems .bashrc is not read and thus no user-defined setting is run. Since I have put the UMASK setting also inside /etc/login.defs this "bug" is not triggered any more.