https://bugs.kde.org/show_bug.cgi?id=399270
Bug ID: 399270 Summary: File copying ignores setuid bit Product: dolphin Version: 17.12.2 Platform: Fedora RPMs OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: dolphin-bugs-n...@kde.org Reporter: i...@kobaltwit.be CC: elvis.angelac...@kde.org Target Milestone: --- SUMMARY Using dolphin to copy files into a directory which has the group setuid bit set, will ignore this bit. That means the files copied will have the primary group set of the user performing the copy instead of the group of the parent directory. STEPS TO REPRODUCE 1. Create a directory "test" with following permissions: rwx rws --- myuser commongroup That is the directory is accessible and modifyable by myuser and all members of commongroup. The "s" indicates the group setuid bit is set and should enforce that each file copied into this directory should get "commongroup" as group ownership The exact set of commands to set this up are - mkdir test - chmod u+rwx,g+rwxs,o= test - chgrp commongroup test Note commongroup must be an existing group which is not the primary group of user myuser for this test. 2. Start dolphin and copy any file into this test directory 3. Check file ownership via the command line: - ls -l test OBSERVED RESULT The group of the copied file is myuser's primary group EXPECTED RESULT The group of the copied file is "commongroup" as per the setuid bit behavior. SOFTWARE VERSIONS (available in About System) KDE Plasma Version: 5.12.6 KDE Frameworks Version: 5.48.0 Qt Version: 5.9.6 ADDITIONAL INFORMATION A copy on the command line using "cp" does the right thing. This erratic behavior makes it unnecessarily hard to share files in a networked multi-user environment. In the past a similar bug was reported against gwenview: bug 149148. As that bug is closed and I'm seeing this in dolphin, I chose to create a new bug. -- You are receiving this mail because: You are watching all bug changes.