fuck it - nobody sane in his mind can work that way
nobody and nothing has to mangle permissions/owner/group when someone
edits *existing files* - nobody and really nothing
there is a damned good reason that this file had "apache" as group
before kate touched it
Access: (0640/-rw-r-----) Uid: ( 500/ harry) Gid: ( 501/verwaltung)
[Mon Dec 07 17:20:52.397428 2015] [core:error] [pid 29675]
(13)Permission denied: [client 10.0.0.99:58566] AH00132: file
permissions deny server access:
/Volumes/dune/www-servers/contentlounge/cms/rte/catalog.js, referer:
http://contentlounge/cms/rte/catalog.php?targetfield=window.opener.docume...
Am 01.12.2015 um 15:18 schrieb Reindl Harald:
i wrote a bugreport *years ago* that kate permanently changes
onwer/group of files at store and i am really tired of such *major
usability* bugs
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_fo...
[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 : -