Re: Dolphin ignores umask

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/10/22 1:21 AM, Martin wrote:
Am Sonntag, 9. Januar 2022, 22:49:54 CET schrieb Martin:

 > Am Montag, 27. Dezember 2021, 17:01:00 CET schrieb Neal Gompa:

 >

 > Ah, I don't think that is a bug. I had the same issue, but not only for

 > dolphin, but all KDE apps (like kid3 etc.). So I stressed google up an down

 > and finally found the reason for it: KDE is started since some fedora

 > versions via systemd --user part. And this systemd does not inherit parents

 > umasks but sets it to 0022 by default - unless it is told to do otherwise.

 > This can be done in the systemd units via UMask setting or via pam_umask in

 > the pam config files.

 >

 > simple add "session optional pam_umask.so usergroups" to the

 > /etc/pam.d/system-auth file, reboot and login again - and dolphin should

 > create files as requested (at least id did for me during some short tests).


I digged a little bit deeper and the entry in the system-auth file is a solution, but not the fedora way of configuring - al least not completely.


My system is a very old one (about eight years) and upgraded over several fedora versions. The pam system was originally configured by a tool called authconfig (which changes system-auth and some other pam files). This tool is no longer available in fedora 35 and seems to be replaced by another tool called authselect.


If you don't plan to use authselect changing the system-auth file is fine. If you plan to use it, this system-auth pam file will be overwritten. The umask part will work nevertheless, as authselect uses the pam file postlogin for the pam_umask.so part (you have to configure UMASK in /etc/login.defs for using the default pam_umask module).


try "authselect test sssd" and check the output to see which files will be changed/replaced with which content. I am currently investigation these changes and will test if this fits my needs. If yes, i have a clean system and can update my pam system without any hassle.


Regards

Martin


 >

 > Regards

 > Martin

 >

 > > Please file a bug upstream at bugs.kde.org. Upstream KDE developers

 > > look there for these things and will be able to do something about the

 > > problem.

 > >

 > >

 > >

 > >

 > > --

 > > 真実はいつも一つ!/ Always, there's only one truth!
I first tried the pam method you suggested, as it seemed to be easier to do it once per workstation, but it didn't work.  For reasons you suggest above, I suppose :-)

Then I used the systemd method you mentioned.  It was a little more painful because it has to be done for each user on each workstation you want to change the UMASK for.  Lucky for me I only have one other user on my system and only three workstations to configure.  I was happy to find that it wasn't required to do anything on any of our servers, only the workstations access thoe servers.

I did have to reboot each workstation after altering the systemd configuration before the changed took effect.

Thanks for you suggestions.

I will add what I did to the bugs I reported.

Emmett


_______________________________________________
kde mailing list -- kde@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kde-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kde@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [KDE Users]     [Fedora General Discussion]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Triage]     [Coolkey]     [Yum Users]     [Yosemite Forum]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux