Bug 391936

Summary: Plasma folderview and similar ignore (or bypass) setgid directories
Product: [Frameworks and Libraries] frameworks-kio Reporter: Paul Gover <pmw.gover>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED WORKSFORME    
Severity: normal CC: faure, hein, kdelibs-bugs-null, plasma-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Paul Gover 2018-03-16 14:59:25 UTC
I want to a directory of "public" news files and stuff.  I created /home/shared/notices/public ("shared" is not a user) and made the "public" directory setgid (chmod g+s public) and in group "users".  If I copy a file into the directory using the command line "cp stuff /home/shared/notices/public" the copied file gets group "users" as I expect.

In detail, the file ~paul/stuff was owned by paul:paul.  When copied, it became /home/shared/notices/public/stuff owned by paul:users.

Now I added a folderview widget to my desktop, and set it to display the contents of the public folder.  If I drag and drop the same file into the folderview, it retains its old group (which is the one with the same name as my userid) and so it does not become public.  It remains owned by paul:paul, which is not what I want.

The same is true if I "Create New... Basic link to file or directory..." object on the desktop, and point it at the same directory, drag and drop files retain their old group setting, and don't get changed.
Comment 1 Paul Gover 2018-03-30 17:14:03 UTC
Having done a little ill-informed digging, it's possible the problem lies in KIO Slaves.  It made my head hurt just reading the code :-)
Comment 2 Eike Hein 2018-03-31 09:53:34 UTC
Yep, this is in KIO.
Comment 3 Justin Zobel 2022-11-18 04:30:36 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 4 Bug Janitor Service 2022-12-03 05:17:46 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2022-12-18 05:15:49 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!