Whenever a save a file whose group is not the default for the user Kate changes the group of the file to the default one $ groups javi users nginx $ touch sample.txt $ sudo chown javi:nginx sample.txt $ ls -l sample.txt -rw-r--r-- 1 javi nginx 0 may 6 14:31 sample.txt $ kate sample.txt # Make some changes to the file and then save it $ ls -l sample.txt -rw-r--r-- 1 javi users 2 may 6 14:32 sample.txt Reproducible: Always Steps to Reproduce: 1. Create a file whose group is not the default for the current user 2. Open the file with Kate 3. Make some changes to the file and save it Actual Results: The group of the file is changed Expected Results: The file should preserve the original group ownership Kate Version 15.12.3 using KDE Frameworks 5.21.0 Qt 5.5.1 (built against 5.5.1) Compiled from the official Gentoo repository
Same as Bug 362201?
Yes, known issue and tracked as bug #333577. *** This bug has been marked as a duplicate of bug 333577 ***
This bug appears to have arisen from the dead, as it affect Kate version 22.12.3 on Debian 12. I'm on a local Debian 12 Dell desktop PC. westk@westkent:~$ cat /etc/debian_version 12.1 westk@westkent:~$ uname -a Linux westkent 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.38-1 (2023-07-14) x86_64 GNU/Linux westk@westkent:~$ cat /etc/apt/sources.list #deb http://ftp.us.debian.org/debian/ unstable main contrib non-free #deb-src http://ftp.us.debian.org/debian/ unstable main contrib non-free deb http://ftp.us.debian.org/debian/ bookworm main contrib non-free non-free-firmware deb-src http://ftp.us.debian.org/debian/ bookworm main contrib non-free non-free-firmware deb http://deb.debian.org/debian bookworm-backports main contrib non-free-firmware I fire up kate, and Open a file to sftp://goshen.acu.edu/home/web/htdocs/westk/index.html, which before editing the file has these perms: westk[@]goshen]:/home/web/htdocs/westk:> ls -lah index.html -rwxr-x--- 1 westk www-data 9.9K Aug 14 11:13 index.html I edit the file in Kate (just changing one word), and save the changes, and then look at the file perms again: westk[@]goshen]:/home/web/htdocs/westk:> ls -lah index.html -rwxr-x--- 1 westk westk 9.9K Aug 14 11:23 index.html
Ok, let's undo the duplicate status