not only when you open a file as root it get owned by root, the same as normal user, kate does a 'chgrp' at save (most likely because taht stupid tempfile get created with default owner/group/permissions and then just renamed)
guess what the result below is and *exactly* the same happens when you mount a remote-filesystem with sshfs and edit something with kate
frankly, that whole temp-file stuff is just broken by intention because when you don't have write permissions for the parent folder that fails while you are even owner of the file you want to edit - and *yes* take away write permissions for a folder is the only way to avoid somebody just renames a file he must not write to and create a new one with the same name
[Tue Dec 01 14:54:43.814602 2015] [core:error] [pid 7495] (13)Permission denied: [client 10.0.0.99:25412] AH00132: file permissions deny server access: /Volumes/dune/www-servers/contentlounge/cms/contentlounge.js, referer: http://contentlounge.test.rh/cms/modules/voting_ng/interface_container_form.php?vng_id=1&time=1448977737
[harry@rh:~]$ stat /Volumes/dune/www-servers/contentlounge/cms/contentlounge.js
Datei: ?/Volumes/dune/www-servers/contentlounge/cms/contentlounge.js? Größe: 15222 Blöcke: 32 EA Block: 4096 reguläre Datei Gerät: 902h/2306d Inode: 56492839 Verknüpfungen: 1 Zugriff: (0640/-rw-r-----) Uid: ( 500/ harry) Gid: ( 48/ apache) Zugriff : 2015-12-01 15:11:12.221155370 +0100 Modifiziert: 2015-12-01 15:10:30.237873256 +0100 Geändert : 2015-12-01 15:11:11.474150350 +0100 Geburt : -[harry@rh:~]$ stat /Volumes/dune/www-servers/contentlounge/cms/contentlounge.js
Datei: ?/Volumes/dune/www-servers/contentlounge/cms/contentlounge.js? Größe: 15220 Blöcke: 32 EA Block: 4096 reguläre Datei Gerät: 902h/2306d Inode: 56492631 Verknüpfungen: 1 Zugriff: (0640/-rw-r-----) Uid: ( 500/ harry) Gid: ( 501/verwaltung) Zugriff : 2015-12-01 15:11:29.677272664 +0100 Modifiziert: 2015-12-01 15:11:29.584272040 +0100 Geändert : 2015-12-01 15:11:29.660272550 +0100 Geburt : -
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ kde mailing list kde@xxxxxxxxxxxxxxxxxxxxxxx http://lists.fedoraproject.org/admin/lists/kde@xxxxxxxxxxxxxxxxxxxxxxx