Bug 339510 - Kate changes group ownership on files
Summary: Kate changes group ownership on files
Status: RESOLVED DUPLICATE of bug 333577
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 3.13.2
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-29 16:00 UTC by Greg Rundlett
Modified: 2014-09-29 16:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Rundlett 2014-09-29 16:00:17 UTC
Version 3.13.3 (not reflected in the Version select widget in the Bug tracker)
Using KDE Development Platform 4.13.3  I believe KFileSave is the name of the component that saves files.

Make it so that I can edit LocalSettings, and the webserver can read the file
chown greg:www-data /var/www/core/LocalSettings.php
chmod 640 !$
-rw-r----- 1 greg www-data 5501 Sep 29 10:50 /var/www/core/LocalSettings.php

Edit with Kate
(Kate changes the group to 'greg', and now the Mediawiki web app is broken because Apache can't read the file)

ll /var/www/core/LocalSettings.php 
-rw-r----- 1 greg greg 5501 Sep 29 10:50 /var/www/core/LocalSettings.php

==Workaround==
Launch Kate with sudo, and it doesn't change ownership of the file.  This is a risky and poor workaround because this also means you don't have all your personal settings in Kate, and you might not even be able to launch it with sudo over an SSH session to a remote host (without X-forwarding for root).
Comment 1 Dominik Haumann 2014-09-29 16:21:11 UTC
Known issue and a bug in KSaveFile, mark as duplicate.

*** This bug has been marked as a duplicate of bug 333577 ***