https://bugs.kde.org/show_bug.cgi?id=475150
Bug ID: 475150 Summary: Dolphin seems not to respect default ACLs on directories Classification: Frameworks and Libraries Product: frameworks-kio Version: 5.27.0 Platform: Archlinux OS: Linux Status: REPORTED Severity: major Priority: NOR Component: general Assignee: kio-bugs-n...@kde.org Reporter: richard.p...@free.fr CC: kdelibs-b...@kde.org Target Milestone: --- As indicated in https://discuss.kde.org/t/dolphin-seems-not-to-respect-default-acls-on-directories/5577 Having since a while serious problems with dolphin not respecting default ACLs on directories when copying files. We’re running Arch Linux 6.1.55-1-lts #1 SMP PREEMPT_DYNAMIC Sat, 23 Sep 2023 16:57:15 +0000 x86_64 GNU/Linux on the server, and EndeavourOS Linux 6.1.55-1-lts #1 SMP PREEMPT_DYNAMIC Sat, 23 Sep 2023 16:57:15 +0000 x86_64 GNU/Linux on the clients. But I can reproduce the problem on just the clients. We use PAM having /etc/pam.d/system-login:session optional pam_umask.so usergroups umask=0077 such that umask is by default 0007 and, for example, the users involved are members of the users group and by default have their group name the same as their username… pretty much all vanilla so far. (1) if I create a test directory as follows in /tmp: $ mkdir testacl $ chown richard:users testacl/ $ chmod g+s testacl/ $ setfacl -d -m group:users:rwx testacl $ getfacl testacl/ # file: testacl/ # owner: richard # group: users # flags: -s- user::rwx group::rwx other::--- default:user::rwx default:group::rwx default:group:users:rwx default:mask::rwx default:other::--- create files to copy: $ touch f-bash f-dolphin f-nautilus $ ls -la f-* -rw-rw---- 1 richard richard 0 28 sept. 16:05 f-bash -rw-rw---- 1 richard richard 0 28 sept. 16:05 f-dolphin -rw-rw---- 1 richard richard 0 28 sept. 16:05 f-nautilus Now, control test that things are setup as expected with bash $ cp f-bash testacl/ $ getfacl testacl/f-bash # file: testacl/f-bash # owner: richard # group: users user::rw- group::rwx #effective:rw- group:users:rwx #effective:rw- mask::rw- other::--- great, copied file gets group changed to users and group permissions are OK. But when dolphin copies its file to the test directory, the following is the result: $ getfacl testacl/f-dolphin # file: testacl/f-dolphin # owner: richard # group: richard user::rw- group::rwx #effective:rw- group:users:rwx #effective:rw- mask::rw- other::--- Notice that the copied file’s group didn’t get correctly updated. If I try with nautilus, the expected behaviour is seen, that is just like if one used cp. SOFTWARE/OS VERSIONS Operating System: EndeavourOS KDE Plasma Version: 5.27.8 KDE Frameworks Version: 5.110.0 Qt Version: 5.15.10 Kernel Version: 6.1.55-1-lts (64-bit) Graphics Platform: X11 Processors: 12 × AMD Ryzen 5 5500U with Radeon Graphics Memory: 30.7 Gio of RAM Graphics Processor: AMD Radeon Graphics Manufacturer: ASUSTeK COMPUTER INC. Product Name: MINIPC PN51-E1 System Version: 0505 -- You are receiving this mail because: You are watching all bug changes.