| Summary: | Dophin does not honor user's UMASK | ||
|---|---|---|---|
| Product: | [Applications] dolphin | Reporter: | Emmett Culley <lst_manage> |
| Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | major | CC: | argonel, dolphin-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 24.08.1 | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Emmett Culley
2024-09-17 17:19:36 UTC
How are you configuring the umask? It is working for me in Fedora 40. For my user, I set is in .bashrc. umask 0002 That won't work in Fedora because the desktop session creation doesn't involve a shell, and the umask command only affects the current process and its descendants. There are various other options like creating a systemd override, but Fedora 40 has pam_umask enabled.
To use pam_umask, the umask should go after the fourth value in the GECOS field in the user's entry in /etc/passwd, for example:
f40_vm:x:1000:1000:F40 Test,,,,umask=0002:/home/f40_vm:/bin/bash
As far as I know there aren't any tools that can manipulate the 5th and later values in the GECOS list, so you'll have to edit it manually. pam_umask doesn't care, but the umask directive might get displayed in unexpected places if its earlier in the list.
That didn't help: xfxfxfxf:x:1000:1000:Factor now,,,,umask=0002:/home/xfxfxfxf:/bin/bash Still, creating a file or directory in dolphin still does not set group to write. What am I missing? Emmett Turns out that did fix it. I hadn't thought to log out and reset my machine. Once I did that, the umask worked as expected. Thanks I'm pretty happy as this fixes an issue I've had for years with my NFS server ignoring the umask. I never noticed this using dolphin locally as it was pretty rare to create files from dolphin. I'd sometimes also noticed this when using kio, but until recently I just worked around it as it wasn't soemting I needed to do very often. It was this new project that has me roking on a remote host for som development work that finaly had finally take the time to create a bug report. (get some help). Thanks again for looking into this and providing the clues I needed. Excellent! |